We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0868fa6 commit f587cd2Copy full SHA for f587cd2
micropython/examples/breakout_as7343/demo.py
@@ -3,10 +3,10 @@
3
4
from breakout_as7343 import BreakoutAS7343
5
from pimoroni_i2c import PimoroniI2C
6
+from pimoroni import BREAKOUT_GARDEN_I2C_PINS # or PICO_EXPLORER_I2C_PINS or HEADER_I2C_PINS
7
import time
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)
+i2c = PimoroniI2C(**BREAKOUT_GARDEN_I2C_PINS)
10
as7343 = BreakoutAS7343(i2c)
11
12
as7343.set_channels(18)
0 commit comments