Skip to content

Commit

Permalink
Remove debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
emericklaw committed Jun 4, 2024
1 parent 8ee74f8 commit de94fef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
30 changes: 1 addition & 29 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def set_menu(
self.menu = Menu(
self,
[
"Version: 0.2.0",
"Version: 0.2.1",
"",
"Essex Hackspace",
"NeoPixel Hexpansion",
Expand Down Expand Up @@ -297,37 +297,9 @@ def update(self, delta):
if self.notification:
self.notification.update(delta)

# print(self.power)

def background_update(self, delta):
# print("background_update")
# print(time.time())
# print(self.power)
if self.power == True:
self.effects.cycle()
print(settings.get("eeh.slot"))
print(settings.get("eeh.slot2"))
# if self.button_states.get(BUTTON_TYPES["RIGHT"]):
# tildagonos.leds[2] = (255, 0, 0)
# tildagonos.leds[3] = (255, 0, 0)
# elif self.button_states.get(BUTTON_TYPES["LEFT"]):
# tildagonos.leds[8] = (0, 255, 0)
# tildagonos.leds[9] = (0, 255, 0)
# elif self.button_states.get(BUTTON_TYPES["UP"]):
# tildagonos.leds[12] = (0, 0, 255)
# tildagonos.leds[1] = (0, 0, 255)
# elif self.button_states.get(BUTTON_TYPES["DOWN"]):
# tildagonos.leds[6] = (255, 255, 0)
# tildagonos.leds[7] = (255, 255, 0)
# elif self.button_states.get(BUTTON_TYPES["CANCEL"]):
# tildagonos.leds[10] = (0, 255, 255)
# tildagonos.leds[11] = (0, 255, 255)
# elif self.button_states.get(BUTTON_TYPES["CONFIRM"]):
# tildagonos.leds[4] = (255, 0, 255)
# tildagonos.leds[5] = (255, 0, 255)
# else:
# for i in range(0,12):
# tildagonos.leds[i+1] = (255, 255, 255)


__app_export__ = EEHNeoPixelLogo
10 changes: 0 additions & 10 deletions effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ def set_brightness(self, brightness, preview=0):

def get_brightness(self):
if self.preview_brightness != None:
# print(self.preview_brightness)
return self.preview_brightness
else:
# print(self.brightness)
return self.brightness

def get_brightnesses(self):
Expand Down Expand Up @@ -155,12 +153,9 @@ def cycle(self):

# Increment cycle
self.current_cycle = self.current_cycle + self.get_speed()
# print(self.current_cycle)
if self.current_cycle >= 256:
self.current_cycle = 0

# print(self.current_cycle)
# print("effects cycle")
effect = self.get_effect()
if effect == "Rainbow":
self.rainbow()
Expand Down Expand Up @@ -221,7 +216,6 @@ def bounce(self, bounce=0, withTail=0):
current_colour = palette[self.colour_number]

self.clear_leds()
# print(self.palettes)
self.set_led(self.position, current_colour)
if withTail:
tail1position = get_indices(
Expand All @@ -236,7 +230,6 @@ def bounce(self, bounce=0, withTail=0):
if self.chain2 != None:
self.chain2.write()

# print(self.position)
if bounce:
self.position += self.direction
if self.position < 0 + SKIP_LED or self.position >= LED_COUNT - SKIP_LED:
Expand All @@ -259,10 +252,7 @@ def fade_between_colors(self):
color1 = colors[key_before]
color2 = colors[key_after]
# Interpolate colours
# print(self.current_cycle)
t = find_percentage(self.current_cycle, key_before, key_after)
# print("t")
# print(t)
color = self.interpolate_color(color1, color2, t)

# Set LEDs
Expand Down
2 changes: 1 addition & 1 deletion tildagon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ description = "App for controlling the NeoPixels on the EEH LED Logo Hexpansion.
# increased, we interpret this as a new version being released.
#
# Version number must be an integer!
version = "0.2.0"
version = "0.2.1"

0 comments on commit de94fef

Please sign in to comment.