Skip to content

Commit f587cd2

Browse files
committed
AS7343: make MicroPython pins consistent
1 parent 0868fa6 commit f587cd2

File tree

1 file changed

+2
-2
lines changed
  • micropython/examples/breakout_as7343

1 file changed

+2
-2
lines changed

micropython/examples/breakout_as7343/demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
from breakout_as7343 import BreakoutAS7343
55
from pimoroni_i2c import PimoroniI2C
6+
from pimoroni import BREAKOUT_GARDEN_I2C_PINS # or PICO_EXPLORER_I2C_PINS or HEADER_I2C_PINS
67
import time
78

8-
# use (sda=20, scl=21) if you have a Pico Explorer Base or other board that uses the alt I2C pins
9-
i2c = PimoroniI2C(sda=4, scl=5)
9+
i2c = PimoroniI2C(**BREAKOUT_GARDEN_I2C_PINS)
1010
as7343 = BreakoutAS7343(i2c)
1111

1212
as7343.set_channels(18)

0 commit comments

Comments
 (0)