Modify colorbar-fastloop.py to conform to new hardware setup

This commit is contained in:
David Thurstenson 2023-10-07 04:25:18 -05:00
parent c2deee3ebd
commit d6cda5d790
1 changed files with 8 additions and 7 deletions

View File

@ -18,9 +18,10 @@ displayio.release_displays()
####
# i2c bus setup
SDA = board.GP0
SCL = board.GP1
i2c = busio.I2C(SCL, SDA)
#SDA = board.GP0
#SCL = board.GP1
#i2c = busio.I2C(SCL, SDA)
i2c = board.STEMMA_I2C()
# END i2c bus setup
####
@ -73,9 +74,9 @@ except:
# Neopixel setup
# Set Constants
pixel_pin = board.GP10
num_pixels = 144
brightness = 0.1
pixel_pin = board.A3
num_pixels = 30
brightness = 0.2
# Create neopixel object named pixels
pixels = neopixel.NeoPixel(
@ -83,7 +84,7 @@ pixels = neopixel.NeoPixel(
num_pixels,
brightness=brightness,
auto_write=False,
pixel_order="GRBW"
pixel_order="GRB"
)
# Set up user-facing neopixel on rotary breakout