-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized interrupt number of commands
- Loading branch information
Arnd
authored and
Arnd
committed
Dec 21, 2016
1 parent
6e15612
commit 0161394
Showing
3 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ | |
** ** | ||
** Vers. Date Developer Comments ** | ||
** ====== ========== =================== ======================================================================== ** | ||
** 1.0.3 2016-12-21 [email protected] Corrected volatile variables and fixed SetColor() call ** | ||
** 1.0.2 2016-12-18 [email protected] Changed SetFade() to SetFadeRate() function to alter the fade speed ** | ||
** 1.0.1 2016-12-14 [email protected] Fixed error on condition to turn off LED lights. ** | ||
** 1.0.0 2016-12-14 [email protected] Allowed defaults for LEDs on class constructer ** | ||
|
@@ -93,12 +94,12 @@ | |
volatile bool _LEDChanged = true; // Set when rotate or click changes // | ||
volatile uint8_t _ButtonPresses = 0; // The current number of pushes // | ||
volatile long _EncoderValue = 0; // The current encoder value // | ||
uint8_t _RedActual = 255; // Actual value for the Red LED // | ||
uint8_t _RedTarget = 255; // Target value for the Red LED // | ||
uint8_t _GreenActual = 255; // Actual value for the Green LED // | ||
uint8_t _GreenTarget = 255; // Target value for the Green LED // | ||
uint8_t _BlueActual = 255; // Actual value for the Blue LED // | ||
uint8_t _BlueTarget = 255; // Target value for the Blue LED // | ||
volatile uint8_t _RedActual = 255; // Actual value for the Red LED // | ||
volatile uint8_t _RedTarget = 255; // Target value for the Red LED // | ||
volatile uint8_t _GreenActual = 255; // Actual value for the Green LED // | ||
volatile uint8_t _GreenTarget = 255; // Target value for the Green LED // | ||
volatile uint8_t _BlueActual = 255; // Actual value for the Blue LED // | ||
volatile uint8_t _BlueTarget = 255; // Target value for the Blue LED // | ||
uint8_t _ColorPushButtonR = 0; // Default pushbutton to pure Red // | ||
uint8_t _ColorPushButtonG = 255; // // | ||
uint8_t _ColorPushButtonB = 255; // // | ||
|