mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
TFT: Update PROGMEM for compatibily with newer gccutility/Adafruit_ST7735.cpp
This commit is contained in:
@ -100,7 +100,7 @@ void Adafruit_ST7735::writedata(uint8_t c) {
|
||||
// formatting -- storage-wise this is hundreds of bytes more compact
|
||||
// than the equivalent code. Companion function follows.
|
||||
#define DELAY 0x80
|
||||
PROGMEM static prog_uchar
|
||||
PROGMEM const static unsigned char
|
||||
Bcmd[] = { // Initialization commands for 7735B screens
|
||||
18, // 18 commands in list:
|
||||
ST7735_SWRESET, DELAY, // 1: Software reset, no args, w/delay
|
||||
@ -293,7 +293,7 @@ PROGMEM static prog_uchar
|
||||
|
||||
// Companion code to the above tables. Reads and issues
|
||||
// a series of LCD commands stored in PROGMEM byte array.
|
||||
void Adafruit_ST7735::commandList(uint8_t *addr) {
|
||||
void Adafruit_ST7735::commandList(const uint8_t *addr) {
|
||||
|
||||
uint8_t numCommands, numArgs;
|
||||
uint16_t ms;
|
||||
@ -318,7 +318,7 @@ void Adafruit_ST7735::commandList(uint8_t *addr) {
|
||||
|
||||
|
||||
// Initialization code common to both 'B' and 'R' type displays
|
||||
void Adafruit_ST7735::commonInit(uint8_t *cmdList) {
|
||||
void Adafruit_ST7735::commonInit(const uint8_t *cmdList) {
|
||||
|
||||
colstart = rowstart = 0; // May be overridden in init func
|
||||
|
||||
|
Reference in New Issue
Block a user