mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
scripts/examples: Fix APDS9960 I2C pins.
This commit is contained in:
parent
dd8e82fa95
commit
a93d01040a
@ -6,7 +6,7 @@ from time import sleep_ms
|
||||
from machine import Pin, I2C
|
||||
from apds9960 import uAPDS9960 as APDS9960
|
||||
|
||||
bus = I2C(1, sda=Pin(13), scl=Pin(14))
|
||||
bus = I2C(1, scl=Pin(15), sda=Pin(14))
|
||||
apds = APDS9960(bus)
|
||||
|
||||
print("Light Sensor Test")
|
||||
|
@ -8,7 +8,7 @@ from machine import Pin, I2C
|
||||
from apds9960.const import *
|
||||
from apds9960 import uAPDS9960 as APDS9960
|
||||
|
||||
bus = I2C(1, sda=Pin(13), scl=Pin(14))
|
||||
bus = I2C(1, scl=Pin(15), sda=Pin(14))
|
||||
apds = APDS9960(bus)
|
||||
|
||||
dirs = {
|
||||
|
@ -7,7 +7,7 @@ from machine import Pin, I2C
|
||||
|
||||
from apds9960 import uAPDS9960 as APDS9960
|
||||
|
||||
bus = I2C(1, sda=Pin(13), scl=Pin(14))
|
||||
bus = I2C(1, scl=Pin(15), sda=Pin(14))
|
||||
apds = APDS9960(bus)
|
||||
|
||||
apds.setProximityIntLowThreshold(50)
|
||||
|
Loading…
Reference in New Issue
Block a user