# Path: IoTPy/boards/metis.py
# class Metis(IoBoard):
# 
#     def __init__(self, io=None, **kwargs):
#         IoBoard.__init__(self, METIS_PINOUT, io, **kwargs)


from IoTPy.boards.metis import Metis
from time import sleep

with Metis() as board, board.analog("D11") as adcPin1, board.pwm("D4") as pwmPin:
    pwmPin.set_frequency(1000)
    while True:
        for i in range(0, 100):
            pwmPin.set_duty_cycle(i)
            sleep(0.01)
        for i in reversed(range(0, 100)):
            pwmPin.set_duty_cycle(i)
            sleep(0.01)
        print(adcPin1.read())

# Path: IoTPy/boards/metis.py
# class Metis(IoBoard):
# 
#     def __init__(self, io=None, **kwargs):
#         IoBoard.__init__(self, METIS_PINOUT, io, **kwargs)


# Path: examples/basic/15_ADC_read_Metis.py
from IoTPy.boards.metis import Metis
from time import sleep


with Metis() as board, board.analog("D11") as adcPin1, board.pwm("D4") as pwmPin:
    pwmPin.set_frequency(1000)
    while True:
        for i in range(0, 100):
            pwmPin.set_duty_cycle(i)
            sleep(0.01)
        for i in reversed(range(0, 100)):
            pwmPin.set_duty_cycle(i)
            sleep(0.01)
        print(adcPin1.read())

        sleep(0.1)