Trinket M0 Lチカをなおす

Posted on Sun 03 February 2019 in misc • Tagged with trinket m0, circuitpython

from time import sleep

from board import D13
from digitalio import DigitalInOut, Direction

if __name__ == '__main__':

    led = DigitalInOut(D13)
    led.direction = Direction.OUTPUT

    while True:
        led.value = True
        print(D13, led.value)
        sleep(0.1)
        led.value = False
        print(D13, led.value)
        sleep(0.5)

この前に書 …


Continue reading