AberLED shield library
Library for the bicolor LED (and TFT screen) shield used in CS12020
|
The declaration for the AberLED class. Many implementation details are inside the AberLED implementation file AberLED.cpp. Note that there must be only one of these objects, but there's no code to enforce this. Weird things will happen if you have more than one. More...
#include "Arduino.h"
Go to the source code of this file.
Classes | |
class | AberLEDClass |
The class for the AberLED shield. One object of this class, called AberLED, is automatically created (similar to how Serial works). Yes, all this time you've been writing C++, not C. You should put AberLED. before every function, so AberLED.begin() instead of just begin() . More... | |
Macros | |
#define | BLACK 0 |
the "off" colour for pixels, used in set() More... | |
#define | GREEN 1 |
the green colour for pixels, used in set() More... | |
#define | RED 2 |
the red colour for pixels, used in set() More... | |
#define | YELLOW 3 |
the yellow colour for pixels, used in set() More... | |
#define | REV00 0 |
#define | REV01 1 |
Enumerations | |
enum | AberLEDFlags { AF_LEDDISPLAY = 1, AF_TFTDISPLAY = 2, AF_NOINTERRUPT = 4 } |
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... | |
AberLEDClass | AberLED |
this is the single instance of the LED class - for documentation see AberLEDClass. More... | |
The declaration for the AberLED class. Many implementation details are inside the AberLED implementation file AberLED.cpp. Note that there must be only one of these objects, but there's no code to enforce this. Weird things will happen if you have more than one.
Definition in file AberLED.h.
#define YELLOW 3 |
enum AberLEDFlags |
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.
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.
int UP |
the number for button S1, the "up" button
Definition at line 48 of file AberLED.cpp.