Update and rename code.py to Bluetooth_Luminaries/code.py

This commit is contained in:
Anne Barela 2019-11-20 14:58:10 -05:00 committed by GitHub
parent 8f79686d60
commit 9f966cf497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ PALETTE_FIRE = [fancy.CRGB(160, 30, 0), # Reds and Yellows
fancy.CRGB(0, 0, 0), fancy.CRGB(0, 0, 0),
fancy.CRGB(200, 40, 0)] fancy.CRGB(200, 40, 0)]
# Declare a NeoPixel object on NEOPIXEL_PIN with NUM_LEDS pixels, # Declare a NeoPixel object on NEOPIXEL_PIN with NUM_LEDS pixels,
# no auto-write. # no auto-write.
# Set brightness to max because we'll be using FancyLED's brightness control. # Set brightness to max because we'll be using FancyLED's brightness control.
ring = neopixel.NeoPixel(RING_PIN, NUM_LEDS, brightness=1.0, auto_write=False) ring = neopixel.NeoPixel(RING_PIN, NUM_LEDS, brightness=1.0, auto_write=False)
@ -139,7 +139,7 @@ while True:
elif packet.button == ButtonPacket.DOWN: elif packet.button == ButtonPacket.DOWN:
offset_increment -= 1 offset_increment -= 1
# Whether or not we're connected via Bluetooth, # Whether or not we're connected via Bluetooth,
# we also want to handle touch inputs. # we also want to handle touch inputs.
if touch_A2.value: if touch_A2.value:
cycling = True cycling = True
@ -160,4 +160,3 @@ while True:
# offset_increment += 1 # offset_increment += 1
# if touch_TX.value: # if touch_TX.value:
# offset_increment -= 1 # offset_increment -= 1