Wednesday, May 20, 2015

successful reapeat

We successfully recreated the "blinky" that we made that first monday.

Here is the source code:

import pyb x1 = pyb.Pin("X1", pyb.Pin.IN, pyb.Pin.PULL_UP) while True: if x1.value() == 1: pyb.LED(1).on() else: pyb.LED(1).off()

No comments:

Post a Comment