9#include <Adafruit_GFX.h>
11class Panel :
public Adafruit_GFX
14 Panel(
int LoadPin,
int NumChips);
23 void drawPixel(int16_t x, int16_t y, uint16_t color)
override;
35 void setPixel(
int x,
int y, uint8_t on);
38 void scrollRow(
int dir,
int row,
bool wrap);
48 void writeDigit(
int digit, uint8_t d);
50 void showCell(
int x,
int y,
int val);
51 void sendCmd(
int cmdData);
Definition: CH_AS1100.h:12
void scrollColumn(int dir, int col, bool wrap)
Scrolls a single column with optional wrap around.
Definition: CH_AS1100.cpp:524
void sendPixels()
sends the pixel array to the panel chips
Definition: CH_AS1100.cpp:363
void scrollRow(int dir, int row, bool wrap)
Scroll an entire row.
Definition: CH_AS1100.cpp:477
void dumpPixels()
displays the contents of the pixel array for debugging
Definition: CH_AS1100.cpp:77
void displayOn(int b)
Turns the panel on/off. This needs to be called to see anything. Can be called to flash the display s...
Definition: CH_AS1100.cpp:414
void displayTest(bool state)
LED test. Regardless of programming, this turns on/off all LEDs.
Definition: CH_AS1100.cpp:429
void setScan(int totaldigits)
Definition: CH_AS1100.cpp:460
void scrollRows(int dir, bool wrap)
scroll ALL rows by calling scrollRow for each row
Definition: CH_AS1100.cpp:507
void setIndividualIntensity(int chips[])
Sets all the chips' intensities with one function.
Definition: CH_AS1100.cpp:301
void clearDisplay(void)
equivalent to fillDisplay(0)
Definition: CH_AS1100.cpp:239
void drawPixel(int16_t x, int16_t y, uint16_t color) override
use setPixel instead
Definition: CH_AS1100.cpp:190
void scrollColumns(int dir, bool wrap)
Scrolls all columns up or down one pixel on each call.
Definition: CH_AS1100.cpp:557
void display(void)
sends the pixel buffer to the display.
Definition: CH_AS1100.cpp:209
void setBinaryMode()
Definition: CH_AS1100.cpp:448
~Panel()
frees memory used for the pixel array
Definition: CH_AS1100.cpp:59
void setIntensity(int level, int chip)
Sets the intensity of one AS1100 chip (character) or ALL chips if chip=-1. Note: you cannot set the i...
Definition: CH_AS1100.cpp:265
bool begin()
initialises the panel. Clears the display and makes the display visible
Definition: CH_AS1100.cpp:113
void setPixel(int x, int y, uint8_t on)
Toggle individual pixel. You must call display() after.
Definition: CH_AS1100.cpp:336
void invertDisplay()
switches LED states from off to on and vice versa
Definition: CH_AS1100.cpp:247
uint8_t getPixel(int x, int y)
returns a pixel state as 1 (on) or 0 (off)
Definition: CH_AS1100.cpp:315
void setClockMode(int m)
Definition: CH_AS1100.cpp:400
void fillDisplay(int state)
Sets the entire pixel buffer to off or on if state is 0 the leds are all off is state is non-zero the...
Definition: CH_AS1100.cpp:220