refactoring eink devices behaviour
This commit is contained in:
1 parent
c9fa617c38
commit
d1d06b92ab
17 files changed
+71
-25
No files matched your search
@@ -18,12 +18,16 @@ build_flags = ${nrf52_base.build_flags}
|
||||
-D P_LORA_SCLK=19
|
||||
-D P_LORA_MISO=22
|
||||
-D P_LORA_MOSI=20
|
||||
-D UI_SHOW_CLOCK=1
|
||||
-D DISPLAY_ROTATION=4
|
||||
-D UI_HAS_ROTARY_INPUT=1
|
||||
-D UI_HAS_NAV_INPUT=1
|
||||
-D UI_RECENT_LIST_SIZE=9
|
||||
-D UI_MSG_PREVIEW_SIZE=165
|
||||
-D EINK_MAX_PARTIAL_REFRESH=60
|
||||
-D AUTO_OFF_MILLIS=1800000
|
||||
-D BACKLIGHT_BTN=PIN_BUTTON2
|
||||
-D UI_SHOW_CLOCK=1
|
||||
-D EINK_SCREENOFF_BLANK
|
||||
-D EINK_DISPLAY_MODEL=GxEPD2_154_D67
|
||||
; -D EINK_DISPLAY_MODEL=GxEPD2_154_GDEY0154D67
|
||||
; -D EINK_DISPLAY_MODEL=GxEPD2_150_BN
|
||||
@@ -92,10 +96,7 @@ build_flags =
|
||||
-D MAX_GROUP_CHANNELS=40
|
||||
-D BLE_PIN_CODE=123456
|
||||
# -D BLE_DEBUG_LOGGING=1
|
||||
-D DISPLAY_ROTATION=4
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D BACKLIGHT_BTN=PIN_BUTTON2
|
||||
-D AUTO_OFF_MILLIS=0
|
||||
-D OFFLINE_QUEUE_SIZE=256
|
||||
-D PIN_BUZZER=33
|
||||
-D AUTO_SHUTDOWN_MILLIVOLTS=3300
|
||||
@@ -133,8 +134,6 @@ build_flags =
|
||||
-D DISPLAY_ROTATION=4
|
||||
-D QSPIFLASH=1
|
||||
-D DISPLAY_CLASS=GxEPDDisplay
|
||||
-D BACKLIGHT_BTN=PIN_BUTTON2
|
||||
-D AUTO_OFF_MILLIS=0
|
||||
-D OFFLINE_QUEUE_SIZE=256
|
||||
-D PIN_BUZZER=6
|
||||
-D AUTO_SHUTDOWN_MILLIVOLTS=3300
|
||||
|
||||
@@ -23,6 +23,7 @@ EnvironmentSensorManager sensors = EnvironmentSensorManager();
|
||||
DISPLAY_CLASS display;
|
||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, true);
|
||||
RotaryInputGPIO rotary_input(PIN_BUTTON1_A, PIN_BUTTON1_B);
|
||||
MomentaryButton backlight_btn(BACKLIGHT_BTN, 1000, true);
|
||||
#endif
|
||||
|
||||
bool radio_init() {
|
||||
|
||||
@@ -23,6 +23,7 @@ extern EnvironmentSensorManager sensors;
|
||||
#ifdef DISPLAY_CLASS
|
||||
extern DISPLAY_CLASS display;
|
||||
extern MomentaryButton user_btn;
|
||||
extern MomentaryButton backlight_btn;
|
||||
extern RotaryInputGPIO rotary_input;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user