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