mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
scripts/examples: Refactor examples.
This commit is contained in:
parent
5af00343dc
commit
f985ef0ef7
14
scripts/examples/00-OpenMV-Boards/00-Board-Control/blinky.py
Normal file
14
scripts/examples/00-OpenMV-Boards/00-Board-Control/blinky.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Blinky example
|
||||||
|
|
||||||
|
import time
|
||||||
|
from machine import Pin
|
||||||
|
|
||||||
|
# This is the only LED pin available on the Nano RP2040,
|
||||||
|
# other than the RGB LED connected to Nina WiFi module.
|
||||||
|
led = Pin("LED_BLUE", Pin.OUT)
|
||||||
|
|
||||||
|
while (True):
|
||||||
|
led.on()
|
||||||
|
time.sleep_ms(250)
|
||||||
|
led.off()
|
||||||
|
time.sleep_ms(250)
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
# Blinky example
|
||||||
|
|
||||||
|
import time
|
||||||
|
from machine import Pin
|
||||||
|
|
||||||
|
# This is the only LED pin available on the Nano RP2040,
|
||||||
|
# other than the RGB LED connected to Nina WiFi module.
|
||||||
|
led = Pin("LED_BLUE", Pin.OUT)
|
||||||
|
|
||||||
|
while (True):
|
||||||
|
led.on()
|
||||||
|
time.sleep_ms(250)
|
||||||
|
led.off()
|
||||||
|
time.sleep_ms(250)
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user