AberLED shield library
Library for the bicolor LED (and TFT screen) shield used in CS12020
|
Implementation of the bicolor LED library. More...
Go to the source code of this file.
Macros | |
#define | RDATA 2 |
#define | RLATCH 3 |
#define | RCLOCK 4 |
#define | CDATA 5 |
#define | CCLOCK 6 |
#define | CLATCH 7 |
#define | MAXTEXTLEN 32 |
Functions | |
void | refreshNextRow () |
ISR (TIMER1_COMPA_vect) | |
Variables | |
int | UP |
the number for button S1, the "up" button More... | |
int | DOWN |
the number for button S2, the "down" button More... | |
int | LEFT |
the number for button S3, the "right" button More... | |
int | RIGHT |
the number for button S4, the "left" button More... | |
int | FIRE |
the number for button S5, the "action" or "fire" button More... | |
int | ticks = 0 |
bool | interruptRunning = false |
volatile int | interruptTicks = 0 |
bool | isTFT |
AberLEDClass | AberLED |
this is the single instance of the LED class - for documentation see AberLEDClass. More... | |
TFT_ST7735 | tft = TFT_ST7735() |
Implementation of the bicolor LED library.
This file implements the AberLED class. Stylistically it's somewhat horrific, using global variables all over the place. This is because (a) it keeps implementation details (private variables) out of the include file, and (b) the class is always used as a singleton.
Definition in file AberLED.cpp.
#define CCLOCK 6 |
Definition at line 45 of file AberLED.cpp.
#define CDATA 5 |
Definition at line 44 of file AberLED.cpp.
#define CLATCH 7 |
Definition at line 46 of file AberLED.cpp.
#define MAXTEXTLEN 32 |
Definition at line 71 of file AberLED.cpp.
#define RCLOCK 4 |
Definition at line 41 of file AberLED.cpp.
#define RDATA 2 |
Definition at line 39 of file AberLED.cpp.
#define RLATCH 3 |
Definition at line 40 of file AberLED.cpp.
ISR | ( | TIMER1_COMPA_vect | ) |
Definition at line 439 of file AberLED.cpp.
|
inline |
Definition at line 367 of file AberLED.cpp.
AberLEDClass AberLED |
this is the single instance of the LED class - for documentation see AberLEDClass.
Definition at line 76 of file AberLED.cpp.
int DOWN |
the number for button S2, the "down" button
Definition at line 48 of file AberLED.cpp.
int FIRE |
the number for button S5, the "action" or "fire" button
Definition at line 48 of file AberLED.cpp.
bool interruptRunning = false |
Definition at line 67 of file AberLED.cpp.
volatile int interruptTicks = 0 |
Definition at line 68 of file AberLED.cpp.
bool isTFT |
Definition at line 69 of file AberLED.cpp.
int LEFT |
the number for button S3, the "right" button
Definition at line 48 of file AberLED.cpp.
int RIGHT |
the number for button S4, the "left" button
Definition at line 48 of file AberLED.cpp.
TFT_ST7735 tft = TFT_ST7735() |
Definition at line 85 of file AberLED.cpp.
int ticks = 0 |
Definition at line 66 of file AberLED.cpp.
int UP |
the number for button S1, the "up" button
Definition at line 48 of file AberLED.cpp.