Hi
I have a problem with my Teensy or my sketch. I use a 240x240 display ST7789. I have defined the Adafruit GFX and the ST7789 libraries.
The two pictures are activated with the code:
The first picture wasn't shown correct.
The Arduino IDE generate the following error:
In file included from C:\Users\FLIP S 14\Documents\Arduino\TeensyTestV6\TeensyTestV6.ino:27:0:
C:\Users\FLIPS1~1\AppData\Local\Temp\arduino_build_858168\sketch\Logo240neu.c:13:0: warning: "PROGMEM" redefined
#define PROGMEM
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:41:0,
from C:\Users\FLIPS1~1\AppData\Local\Temp\arduino_build_858168\pch\Arduino.h:6:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/avr/pgmspace.h:30:0: note: this is the location of the previous definition
#define PROGMEM __attribute__((section(".progmem")))
I have no idea why the picture wasn't shown correct. Someone of you an idea??
Greetings
Gray
I have a problem with my Teensy or my sketch. I use a 240x240 display ST7789. I have defined the Adafruit GFX and the ST7789 libraries.
The two pictures are activated with the code:
Code:
tft.init(240, 240);
tft.fillScreen(ST77XX_WHITE);
tft.setRotation(2);
tft.writeRect(0, 0, 240 , 240, (uint16_t*)Logo240neu);
delay(2000);
tft.fillScreen(ST77XX_WHITE);
tft.setRotation(2);
tft.writeRect(0, 0, 240 , 240, (uint16_t*)Tacho240Print);
delay(2000);
The first picture wasn't shown correct.
The Arduino IDE generate the following error:
In file included from C:\Users\FLIP S 14\Documents\Arduino\TeensyTestV6\TeensyTestV6.ino:27:0:
C:\Users\FLIPS1~1\AppData\Local\Temp\arduino_build_858168\sketch\Logo240neu.c:13:0: warning: "PROGMEM" redefined
#define PROGMEM
^
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/WProgram.h:41:0,
from C:\Users\FLIPS1~1\AppData\Local\Temp\arduino_build_858168\pch\Arduino.h:6:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/avr/pgmspace.h:30:0: note: this is the location of the previous definition
#define PROGMEM __attribute__((section(".progmem")))
I have no idea why the picture wasn't shown correct. Someone of you an idea??
Greetings
Gray