diff --git a/app.py b/app.py index ad4c57e..2ce153e 100644 --- a/app.py +++ b/app.py @@ -265,7 +265,7 @@ def set_menu( self.menu = Menu( self, [ - "Version: 0.2.0", + "Version: 0.2.1", "", "Essex Hackspace", "NeoPixel Hexpansion", @@ -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 diff --git a/effects.py b/effects.py index bde909a..77ab16a 100644 --- a/effects.py +++ b/effects.py @@ -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): @@ -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() @@ -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( @@ -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: @@ -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 diff --git a/tildagon.toml b/tildagon.toml index 71b0956..bd6ac6b 100644 --- a/tildagon.toml +++ b/tildagon.toml @@ -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" \ No newline at end of file +version = "0.2.1" \ No newline at end of file