Of course the StickC and Plus handle bitmaps differently...

This commit is contained in:
Noah Axon 2024-01-10 18:45:06 -06:00
parent 5248f81314
commit 752cc40697
1 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,7 @@ String buildver="2.3.3";
#define DISP M5.Lcd
#define IRLED 9
#define SPEAKER M5.Beep
#define BITMAP M5.Lcd.drawBitmap(0, 0, 320, 240, NEMOMatrix)
#define SD_CLK_PIN 0
#define SD_MISO_PIN 36
#define SD_MOSI_PIN 26
@ -58,6 +59,7 @@ String buildver="2.3.3";
// -=-=- ALIASES -=-=-
#define DISP M5.Lcd
#define IRLED 19
#define BITMAP M5.Lcd.drawBmp(NEMOMatrix, 97338)
#define M5_BUTTON_MENU 35
#define M5_BUTTON_HOME 37
#define M5_BUTTON_RST 39
@ -86,6 +88,7 @@ String buildver="2.3.3";
// -=-=- ALIASES -=-=-
#define DISP M5.Lcd
#define IRLED 9
#define BITMAP Serial.println("unsupported")
#define SD_CLK_PIN 0
#define SD_MISO_PIN 36
#define SD_MOSI_PIN 26
@ -110,6 +113,7 @@ String buildver="2.3.3";
#define IRLED 44
#define BACKLIGHT 38
#define SPEAKER M5Cardputer.Speaker
#define BITMAP M5Cardputer.Display.drawBmp(NEMOMatrix, 97338)
#define SD_CLK_PIN 40
#define SD_MISO_PIN 39
#define SD_MOSI_PIN 14
@ -1548,7 +1552,7 @@ void wscan_loop(){
void bootScreen(){
// Boot Screen
#ifndef STICK_C
DISP.drawBmp(NEMOMatrix, 97338);
BITMAP;
delay(3000);
#endif
DISP.fillScreen(BGCOLOR);
@ -1843,7 +1847,7 @@ void loop() {
case 10:
// easter egg?
#ifndef STICK_C
if(check_select_press()){DISP.drawBmp(NEMOMatrix, 97338);}
if(check_select_press()){BITMAP;}
#endif
break;
case 11: