mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
-add mono display "Wemos OLED shield 64x48"
- remove senseless "display type" check (copy&paste from first display) - reorder displays
This commit is contained in:
parent
0be3a23603
commit
1dc66037ad
7 changed files with 148 additions and 17 deletions
|
@ -19,8 +19,6 @@ class DisplayMono128X64 : public DisplayMono {
|
|||
}
|
||||
|
||||
void init(uint8_t type, uint8_t rotation, uint8_t cs, uint8_t dc, uint8_t reset, uint8_t clock, uint8_t data, uint32_t *utcTs, const char *version) {
|
||||
if((0 == type) || (type > 4))
|
||||
return;
|
||||
|
||||
u8g2_cb_t *rot = (u8g2_cb_t *)((rotation != 0x00) ? U8G2_R2 : U8G2_R0);
|
||||
mType = type;
|
||||
|
@ -65,8 +63,7 @@ class DisplayMono128X64 : public DisplayMono {
|
|||
mDisplay->clearBuffer();
|
||||
|
||||
// set Contrast of the Display to raise the lifetime
|
||||
if (3 != mType)
|
||||
mDisplay->setContrast(mLuminance);
|
||||
mDisplay->setContrast(mLuminance);
|
||||
|
||||
if ((totalPower > 0) && (isprod > 0)) {
|
||||
mTimeout = DISP_DEFAULT_TIMEOUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue