Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AH2005NA committed Jun 17, 2024
1 parent ff9020d commit 55cf591
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- {
name: "M5Dial",
fqbn: "m5stack:esp32:m5stack_dial",
extra_flags: "-DDial",
extra_flags: "-DDIAL",
libraries: "M5Dial IRRemoteESP8266 M5Stack-SD-Updater M5Unified",
partitions: {
bootloader_addr: "0x0000",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- {
name: "M5Dial",
fqbn: "m5stack:esp32:m5stack_dial",
extra_flags: "-DDial",
extra_flags: "-DDIAL",
libraries: "M5Dial IRRemoteESP8266 M5Stack-SD-Updater M5Unified ",
partitions: {
bootloader_addr: "0x0000",
Expand Down
18 changes: 9 additions & 9 deletions m5stick-shark.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// #define STICK_C_PLUS2
// #define STICK_C
// #define CARDPUTER
// #define Dial
// #define DIAL
// -=-=- Uncommenting more than one at a time will result in errors -=-=-

// -=-=- Shark Language for Menu and Portal -=- Thanks, @marivaaldo and @Mmatuda! -=-=-
Expand All @@ -24,7 +24,7 @@ uint16_t FGCOLOR = 0xFFF1; // placeholder
#define SHARK_VERSION "dev 1.0.5"
#endif

#if !defined(CARDPUTER) && !defined(STICK_C_PLUS2) && !defined(STICK_C_PLUS) && !defined(STICK_C) && !defined(Dial)
#if !defined(CARDPUTER) && !defined(STICK_C_PLUS2) && !defined(STICK_C_PLUS) && !defined(STICK_C) && !defined(DIAL)
// #define STICK_C_PLUS2
#define CARDPUTER
#endif
Expand Down Expand Up @@ -182,7 +182,7 @@ String platformName = "Cardputer";
#endif


#if defined(Dial)
#if defined(DIAL)
#include <M5Dial.h>
// -=-=- Display -=-=-
String platformName = "Dial";
Expand Down Expand Up @@ -411,7 +411,7 @@ enum irstate {
} IRcurState;


#ifdef Dial
#ifdef DIAL

void drawmenu(MENU thismenu[], int size) {
DISP.setTextSize(SMALL_TEXT);
Expand Down Expand Up @@ -646,7 +646,7 @@ void check_menu_press() {
#if defined(KB)
if (M5Cardputer.Keyboard.isKeyPressed(',') || M5Cardputer.Keyboard.isKeyPressed('`')) {
#endif
#if defined(Dial)
#if defined(DIAL)
M5Dial.update();
auto t = M5Dial.Touch.getDetail();
if (t.isHolding()) {
Expand Down Expand Up @@ -680,7 +680,7 @@ void check_menu_press() {
dimtimer();
return true;
}
#elif defined(Dial)
#elif defined(DIAL)
M5Dial.update();
int newPosition = M5Dial.Encoder.read();
if (-2 > newPosition)
Expand Down Expand Up @@ -712,7 +712,7 @@ void check_menu_press() {
dimtimer();
return true;
}
#elif defined(Dial)
#elif defined(DIAL)
M5Dial.update();
auto t = M5Dial.Touch.getDetail();
if (t.isPressed()) {
Expand Down Expand Up @@ -3103,7 +3103,7 @@ void writeCard() {
delay(1000);
BITMAP;
//Random Startupsound 0...6
#ifdef Dial
#ifdef DIAL
if (EEPROM.read(6))
#else
if (EEPROM.read(6) && digitalRead(M5_BUTTON_HOME))
Expand Down Expand Up @@ -3306,7 +3306,7 @@ void writeCard() {
#if defined(CARDPUTER)
auto cfg = M5.config();
M5Cardputer.begin(cfg, true);
#elif defined(Dial)
#elif defined(DIAL)
auto cfg = M5.config();
M5Dial.begin(cfg, true, false);
#else
Expand Down

0 comments on commit 55cf591

Please sign in to comment.