mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
M8: preview messages up to 164 cars
This commit is contained in:
@@ -511,6 +511,10 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef UI_MSG_PREVIEW_SIZE
|
||||||
|
#define UI_MSG_PREVIEW_SIZE 78
|
||||||
|
#endif
|
||||||
|
|
||||||
class MsgPreviewScreen : public UIScreen {
|
class MsgPreviewScreen : public UIScreen {
|
||||||
UITask* _task;
|
UITask* _task;
|
||||||
mesh::RTCClock* _rtc;
|
mesh::RTCClock* _rtc;
|
||||||
@@ -518,7 +522,7 @@ class MsgPreviewScreen : public UIScreen {
|
|||||||
struct MsgEntry {
|
struct MsgEntry {
|
||||||
uint32_t timestamp;
|
uint32_t timestamp;
|
||||||
char origin[62];
|
char origin[62];
|
||||||
char msg[78];
|
char msg[UI_MSG_PREVIEW_SIZE];
|
||||||
};
|
};
|
||||||
#define MAX_UNREAD_MSGS 32
|
#define MAX_UNREAD_MSGS 32
|
||||||
int num_unread;
|
int num_unread;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ build_flags = ${nrf52_base.build_flags}
|
|||||||
-D UI_HAS_NAV_INPUT=1
|
-D UI_HAS_NAV_INPUT=1
|
||||||
-D UI_RECENT_LIST_SIZE=9
|
-D UI_RECENT_LIST_SIZE=9
|
||||||
-D UI_TZ_OFFSET=-4 # GMT-4
|
-D UI_TZ_OFFSET=-4 # GMT-4
|
||||||
|
-D UI_MSG_PREVIEW_SIZE=165
|
||||||
-D EINK_MAX_PARTIAL_REFRESH=60
|
-D EINK_MAX_PARTIAL_REFRESH=60
|
||||||
-D EINK_DISPLAY_MODEL=GxEPD2_154_D67
|
-D EINK_DISPLAY_MODEL=GxEPD2_154_D67
|
||||||
; -D EINK_DISPLAY_MODEL=GxEPD2_154_GDEY0154D67
|
; -D EINK_DISPLAY_MODEL=GxEPD2_154_GDEY0154D67
|
||||||
|
|||||||
Reference in New Issue
Block a user