Permalink
Browse files

Removing dead variable brightness code

  • Loading branch information...
1 parent 67712c6 commit b92893e51d47a13fd7fb0107983b603a7c2dd2dd @nickveys committed Oct 3, 2011
Showing with 2 additions and 24 deletions.
  1. +2 −24 lumitock/leds.cpp
View
26 lumitock/leds.cpp
@@ -25,31 +25,9 @@
#include "leds.h"
-uint16_t BRIGHTNESS_LEVELS[4] =
-{
- 1000,
- 2000,
- 3000,
- 4000,
-};
-
-uint8_t brightness = 0;
-
-void cycleBrightness()
-{
- if (brightness == 3)
- {
- brightness = 0;
- }
- else
- {
- ++brightness;
- }
-}
-
void doStartupPattern()
{
- uint8_t maxv = 2000;
+ uint8_t maxv = 3000;
uint16_t dur = 350;
uint8_t cols[][3] =
@@ -106,7 +84,7 @@ void setRandomIndex(uint16_t *indices, uint8_t size)
uint16_t setSegment(uint8_t ch0, uint8_t count, uint16_t indices, boolean fadeIn)
{
- uint16_t maxval = BRIGHTNESS_LEVELS[brightness];
+ uint16_t maxval = 300;
uint32_t t0 = millis() + 50;
uint32_t t1 = t0 + 500;

0 comments on commit b92893e

Please sign in to comment.