110 Adafruit_RA8875(SPI_HandleTypeDef* spi, GPIO_TypeDef* csPort, uint16_t csPin,
111 GPIO_TypeDef* rstPort, uint16_t rstPin,
112 GPIO_TypeDef* waitPort =
nullptr, uint16_t waitPin = 0);
122 void textColor(uint16_t foreColor, uint16_t bgColor);
125 void textWrite(
const char* buffer, uint16_t len = 0);
130 void setXY(uint16_t x, uint16_t y);
135 void drawPixel(int16_t x, int16_t y, uint16_t color);
136 void drawPixels(uint16_t* p, uint32_t count, int16_t x, int16_t y);
137 void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
138 void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
142 void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
143 void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
144 void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
145 void drawCircle(int16_t x, int16_t y, int16_t r, uint16_t color);
146 void fillCircle(int16_t x, int16_t y, int16_t r, uint16_t color);
147 void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
148 int16_t y2, uint16_t color);
149 void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2,
150 int16_t y2, uint16_t color);
151 void drawEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis,
152 int16_t shortAxis, uint16_t color);
153 void fillEllipse(int16_t xCenter, int16_t yCenter, int16_t longAxis,
154 int16_t shortAxis, uint16_t color);
155 void drawCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis,
156 int16_t shortAxis, uint8_t curvePart, uint16_t color);
157 void fillCurve(int16_t xCenter, int16_t yCenter, int16_t longAxis,
158 int16_t shortAxis, uint8_t curvePart, uint16_t color);
159 void drawRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r,
161 void fillRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r,
171 void GPIOX(
boolean on);
180 boolean touchRead(uint16_t* x, uint16_t* y);
183#if defined(EEPROM_SUPPORTED)
195 const uint8_t* data, uint32_t length);
197 void* ctx, uint32_t sizeBytes);
207 void writeReg(uint8_t reg, uint8_t val);
213 boolean waitPoll(uint8_t r, uint8_t f);
214 uint16_t
width(
void);
219#ifndef USE_ADAFRUIT_GFX_FONTS
244 virtual size_t write(
const uint8_t* buffer,
size_t size) {
252 void initialize(
void);
255 void circleHelper(int16_t x, int16_t y, int16_t r, uint16_t color,
257 void rectHelper(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color,
259 void triangleHelper(int16_t x0, int16_t y0, int16_t x1, int16_t y1,
260 int16_t x2, int16_t y2, uint16_t color,
bool filled);
261 void ellipseHelper(int16_t xCenter, int16_t yCenter, int16_t longAxis,
262 int16_t shortAxis, uint16_t color,
bool filled);
263 void curveHelper(int16_t xCenter, int16_t yCenter, int16_t longAxis,
264 int16_t shortAxis, uint8_t curvePart, uint16_t color,
266 void roundRectHelper(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r,
267 uint16_t color,
bool filled);
270 int16_t applyRotationX(int16_t x);
271 int16_t applyRotationY(int16_t y);
273 void swap(int16_t& x, int16_t& y) {
279 SPI_HandleTypeDef* _spi;
280 GPIO_TypeDef *_csPort, *_rstPort, *_waitPort;
281 uint16_t _csPin, _rstPin, _waitPin;
285 uint32_t _storageSize;
288 bool spiConfigOk(
void);
289 void spiSetSpeed(uint32_t hz);
290 uint8_t spiTransfer(uint8_t d);
291 void spiWrite(
const uint8_t* data, uint16_t len);
297 void waitForReady(
void);
298 bool storageReadBytes(uint32_t address, uint8_t* data, uint32_t length);
299 bool storageWriteBytes(uint32_t address,
const uint8_t* data,
301 uint16_t _width, _height;