Skip to content

Commit

Permalink
coreink changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AH2005NA committed Aug 28, 2024
1 parent 159c55a commit d5ac34d
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions m5stick-shark.ino
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ void check_menu_press() {
#if defined(CARDPUTER)
{ TXT_BATT_INFO, 6 },
#endif
#ifndef CoreInk
{ TXT_BRIGHT, 4 },
#endif
#if defined(RTC)
{ TXT_SET_CLOCK, 3 },
#endif
Expand All @@ -373,7 +375,9 @@ void check_menu_press() {
#if defined(USE_EEPROM)
{ TXT_Song_dis, 96 },
#endif
#ifndef CoreInk
{ TXT_THEME, 23 },
#endif
{ TXT_ABOUT, 10 },
{ TXT_REBOOT, 98 },
#if defined(USE_EEPROM)
Expand Down Expand Up @@ -2515,6 +2519,8 @@ void writeCard() {
DISP.fillScreen(WHITE);
#ifdef DIAL
DISP.qrcode("https://github.com/AH2005NA/m5stick-shark", 145, 65, 100, 5);
#elif defined(CoreInk)
DISP.qrcode("https://github.com/AH2005NA/m5stick-shark", 100, 100, 100, 5);
#else
DISP.qrcode("https://github.com/AH2005NA/m5stick-shark", 145, 22, 100, 5);
#endif
Expand All @@ -2526,7 +2532,11 @@ void writeCard() {
DISP.setCursor(0, 10);
#endif
DISP.print(" M5-SHARK\n");
#if defined(CoreInk)
DISP.setTextSize(TINY_TEXT);
#else
DISP.setTextSize(SMALL_TEXT);
#endif
#ifdef DIAL
DISP.setCursor(15, 65);
#endif
Expand All @@ -2537,13 +2547,16 @@ void writeCard() {
#ifdef DIAL
DISP.setCursor(155, 155);
DISP.println("GitHub");
#elif defined(CoreInk)
DISP.setCursor(135, 65);
DISP.println("GitHub");
DISP.setCursor(135, 80);
DISP.println("Source:");
#else
DISP.setCursor(155, 5);
DISP.println("GitHub");
#endif
#ifndef DIAL
DISP.setCursor(155, 17);
DISP.println("Source:");
DISP.setCursor(155, 17);
DISP.println("Source:");
#endif
delay(250);
cursor = 0;
Expand All @@ -2555,12 +2568,16 @@ void writeCard() {
DISP.setTextColor(BLACK, WHITE);
#ifdef DIAL
DISP.setCursor(25, 180);
#elif defined(CoreInk)
DISP.setCursor(0, 130);
#else
DISP.setCursor(0, 115);
#endif
DISP.println(" ");
#ifdef DIAL
DISP.setCursor(25, 180);
#elif defined(CoreInk)
DISP.setCursor(0, 130);
#else
DISP.setCursor(0, 115);
#endif
Expand Down

0 comments on commit d5ac34d

Please sign in to comment.