mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add Nano blinky example
This commit is contained in:
parent
4cee826bd7
commit
df6b90fdaa
@ -0,0 +1,18 @@
|
||||
# Blinky example
|
||||
|
||||
import time
|
||||
from board import LED
|
||||
LED_RED=1
|
||||
LED_GREEN=2
|
||||
LED_BLUE=3
|
||||
LED_YELLOW=4
|
||||
|
||||
while (True):
|
||||
LED(LED_BLUE).on()
|
||||
time.sleep_ms(150)
|
||||
LED(LED_BLUE).off()
|
||||
time.sleep_ms(100)
|
||||
LED(LED_BLUE).on()
|
||||
time.sleep_ms(150)
|
||||
LED(LED_BLUE).off()
|
||||
time.sleep_ms(600)
|
||||
Loading…
Reference in New Issue
Block a user