mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
boards/All: Rename LED pins more consistently.
This commit is contained in:
parent
0288218945
commit
9344c3b743
@ -11,7 +11,7 @@ sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
|
|||||||
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
||||||
|
|
||||||
# This pin will be toggled on/off on VSYNC rising and falling edges.
|
# This pin will be toggled on/off on VSYNC rising and falling edges.
|
||||||
led_pin = Pin("LEDB", Pin.OUT_PP, Pin.PULL_NONE)
|
led_pin = Pin("LED_BLUE", Pin.OUT_PP, Pin.PULL_NONE)
|
||||||
sensor.set_vsync_callback(lambda state, led=led_pin: led_pin.value(state))
|
sensor.set_vsync_callback(lambda state, led=led_pin: led_pin.value(state))
|
||||||
|
|
||||||
clock = time.clock() # Create a clock object to track the FPS.
|
clock = time.clock() # Create a clock object to track the FPS.
|
||||||
|
|||||||
@ -11,7 +11,7 @@ sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCA
|
|||||||
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
||||||
|
|
||||||
# This pin will be toggled on/off on VSYNC rising and falling edges.
|
# This pin will be toggled on/off on VSYNC rising and falling edges.
|
||||||
led_pin = Pin("LEDB", Pin.OUT_PP, Pin.PULL_NONE)
|
led_pin = Pin("LED_BLUE", Pin.OUT_PP, Pin.PULL_NONE)
|
||||||
sensor.set_vsync_callback(lambda state, led=led_pin: led_pin.value(state))
|
sensor.set_vsync_callback(lambda state, led=led_pin: led_pin.value(state))
|
||||||
|
|
||||||
clock = time.clock() # Create a clock object to track the FPS.
|
clock = time.clock() # Create a clock object to track the FPS.
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 94bfd057f7b1cce2cda22dde5b85c1b950757d81
|
Subproject commit 9bb54b2ba0b2eb8dd3ad093e2d95c8004f1e88ac
|
||||||
Loading…
Reference in New Issue
Block a user