mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
scripts/examples: Fix VSYNC GPIO LED pin name.
This commit is contained in:
parent
e3ba901270
commit
fddefb670b
@ -10,7 +10,7 @@ sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCAL
|
||||
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
|
||||
|
||||
# This pin will be toggled on/off on VSYNC rising and falling edges.
|
||||
led_pin = Pin('LED_BLUE', Pin.OUT_PP, Pin.PULL_NONE)
|
||||
led_pin = Pin('LEDB', Pin.OUT_PP, Pin.PULL_NONE)
|
||||
sensor.set_vsync_callback(lambda state, led=led_pin: led_pin.value(state))
|
||||
|
||||
clock = time.clock() # Create a clock object to track the FPS.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user