23 LCD_RESET_GPIO_Port, LCD_RESET_Pin);
26 printf(
"RA8875 Found\r\n");
28 printf(
"RA8875 not found (expected chip ID 0x75)\r\n");
35 printf(
"ERROR: testLCD() called before initTest()\r\n");
40 printf(
"================ Graphics Mode =============\r\n");
52 printf(
"FillSreen White\r\n");
58 printf(
"Start: Play with PWM\r\n");
60 for (uint8_t i=255; i!=0; i-=5 )
65 for (uint8_t i=0; i!=255; i+=5 )
72 printf(
"END: Play with PWM\r\n");
75 printf(
"FillSreen Red\r\n");
78 printf(
"FillSreen Yellow\r\n");
81 printf(
"FillSreen Green\r\n");
84 printf(
"FillSreen Cyan\r\n");
87 printf(
"FillSreen Magenta\r\n");
90 printf(
"FillSreen Black\r\n");
95 printf(
"drawCircle\r\n");
97 printf(
"fillCircle\r\n");
102 printf(
"fillRect\r\n");
105 printf(
"drawRect\r\n");
108 printf(
"fillRoundRect\r\n");
111 printf(
"drawPixel\r\n");
114 printf(
"drawPixel\r\n");
117 printf(
"drawLine\r\n");
120 printf(
"drawTriangle\r\n");
123 printf(
"fillTriangle\r\n");
126 printf(
"drawEllipse\r\n");
129 printf(
"fillEllipse\r\n");
133 printf(
"drawCurve\r\n");
136 printf(
"fillCurve\r\n");
139 printf(
"================ Text Mode =============\r\n");
144 printf(
"fillScreen\r\n");
161 printf(
"Render lots of Texts\r\n");
162 char string[80] =
"Hello, World! ";
#define RA8875_GREEN
Green Color.
#define RA8875_YELLOW
Yellow Color.
#define RA8875_MAGENTA
Magenta Color.
#define RA8875_CYAN
Cyan Color.
#define RA8875_PWM_CLK_DIV1024
See datasheet.
#define RA8875_BLACK
Black Color.
#define RA8875_WHITE
White Color.
#define RA8875_RED
Red Color.
#define RA8875_BLUE
Blue Color.
Class that stores state and functions for interacting with the RA8875 display controller.
void fillRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color)
void drawPixel(int16_t x, int16_t y, uint16_t color)
void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
void fillCircle(int16_t x, int16_t y, int16_t r, uint16_t color)
void fillScreen(uint16_t color)
void fillCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint8_t curvePart, uint16_t color)
void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
void fillEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color)
void cursorBlink(uint8_t rate)
boolean begin(enum RA8875sizes s)
void drawCircle(int16_t x, int16_t y, int16_t r, uint16_t color)
void textEnlarge(uint8_t scale)
void textSetCursor(uint16_t x, uint16_t y)
void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
void drawCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint8_t curvePart, uint16_t color)
void textColor(uint16_t foreColor, uint16_t bgColor)
void displayOn(boolean on)
void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
void textTransparent(uint16_t foreColor)
void PWM1config(boolean on, uint8_t clock)
void textWrite(const char *buffer, uint16_t len=0)
void drawEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis, int16_t shortAxis, uint16_t color)
C-callable entry points into the C++ RA8875 display code.
void testLCD(bool buildTest)
Runs one of the two display demonstrations.
void initTest(SPI_HandleTypeDef *halSPI)
Creates the display object and starts the RA8875 controller.