diff --git a/01_LED_BLINK/led_blink.py b/01_LED_BLINK/led_blink.py new file mode 100644 index 0000000..9754ea7 --- /dev/null +++ b/01_LED_BLINK/led_blink.py @@ -0,0 +1,9 @@ +import machine, time + +led = machine.Pin(2, machine.Pin.OUT) + +for i in range(20): + led.off() + time.sleep_ms(500) + led.on() + time.sleep_ms(500) diff --git a/01_LED_BLINK/readme.md b/01_LED_BLINK/readme.md new file mode 100644 index 0000000..6aba475 --- /dev/null +++ b/01_LED_BLINK/readme.md @@ -0,0 +1,7 @@ +# 01_LED_BLINK +To run the program use the following ampy command + + +```bash + ampy --port /dev/tty.SLAB_USBtoUART run led_blink.py +``` \ No newline at end of file