114 void set(
int x,
int y,
unsigned char col);
void clear()
Set all pixels in the back buffer to black.
int UP
the number for button S1, the "up" button
Use a TFT screen display (this is the default)
void begin(AberLEDFlags flags=AF_TFTDISPLAY, uint8_t *colourMap=NULL)
Initialises all pin modes, clears the buffers, starts the interrupt and begins to output data to the ...
int DOWN
the number for button S2, the "down" button
int getButtonDown(unsigned char c)
Return nonzero if the button has been pressed since the last swap(). It's better to use the UP...
static void setRevision(int rev)
Call this to set the revision, after AberLED.begin() (which will set it to REV01 by default)...
int RIGHT
the number for button S4, the "left" button
void clearText()
clear the string which is written to the text area on a TFT display.
static void refresh()
Use only when interrupts are disabled - copies the front buffer to the display.
AberLEDClass AberLED
this is the single instance of the LED class - for documentation see AberLEDClass.
The class for the AberLED shield. One object of this class, called AberLED, is automatically created ...
Do not set up the interrupt. The screen will not be refreshed automatically. You will need to do by c...
int getButton(unsigned char c)
Return nonzero if a given switch is pressed - switches are numbered 1 to 5, which is against my Golde...
int FIRE
the number for button S5, the "action" or "fire" button
static const char * version()
return the version string
uint16_t * getBuffer()
Call this to write to the back buffer directly. It returns a pointer to the buffer: a set of 8 16-bit...
Use the old-style bicolor LED display, not the TFT screen.
void addToText(const char *s)
Append a string to the text area on a TFT display. Does nothing if the display is not a TFT display...
void swap()
Call this code to finish drawing operations. It swaps the back and front buffer, so that the newly wr...
int getTicks()
Return the number of interrupt ticks which occurred in the last swap()-swap() cycle.
int LEFT
the number for button S3, the "right" button