mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
parent
d2eb1ef162
commit
48594c565a
3 changed files with 8 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
# Development Changes
|
||||
|
||||
## 0.7.13 - 2023-07-19
|
||||
* merged display PR #1027
|
||||
|
||||
## 0.7.12 - 2023-07-09
|
||||
* added inverter status - state-machine #1016
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
//-------------------------------------
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 7
|
||||
#define VERSION_PATCH 12
|
||||
#define VERSION_PATCH 13
|
||||
|
||||
//-------------------------------------
|
||||
typedef struct {
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
template <class HMSYSTEM>
|
||||
class Display {
|
||||
public:
|
||||
Display() {}
|
||||
Display() {
|
||||
mMono = NULL;
|
||||
}
|
||||
|
||||
void setup(display_t *cfg, HMSYSTEM *sys, uint32_t *utcTs, const char *version) {
|
||||
mCfg = cfg;
|
||||
|
@ -45,8 +47,7 @@ class Display {
|
|||
|
||||
default: mMono = NULL; break;
|
||||
}
|
||||
if(mMono)
|
||||
{
|
||||
if(mMono) {
|
||||
mMono->config(mCfg->pwrSaveAtIvOffline, mCfg->pxShift, mCfg->contrast);
|
||||
mMono->init(mCfg->type, mCfg->rot, mCfg->disp_cs, mCfg->disp_dc, 0xff, mCfg->disp_clk, mCfg->disp_data, mUtcTs, mVersion);
|
||||
}
|
||||
|
@ -127,7 +128,7 @@ class Display {
|
|||
#if defined(ESP32)
|
||||
DisplayEPaper mEpaper;
|
||||
#endif
|
||||
DisplayMono *mMono = NULL; //default !!!
|
||||
DisplayMono *mMono;
|
||||
};
|
||||
|
||||
#endif /*__DISPLAY__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue