mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 02:52:05 +00:00
Add InkHUD driver for WeAct Studio 1.54" display module (#7000)
* Strip redundant code from E-Ink driver * Begin polling for E-Ink update completion sooner In some cases, we might be waiting longer than we need to. * E-Ink driver for WeAct 1.54" display Currently identical to the popular GDEY0154D67 model. Kept separate now in case the drivers need to diverge in future. * Put back code which sets the number of gate lines
This commit is contained in:
parent
de098cca4c
commit
ba93097bb7
@ -9,12 +9,9 @@ void GDEY0154D67::configScanning()
|
|||||||
{
|
{
|
||||||
// "Driver output control"
|
// "Driver output control"
|
||||||
sendCommand(0x01);
|
sendCommand(0x01);
|
||||||
sendData(0xC7);
|
sendData(0xC7); // Scan until gate 199 (200px vertical res.)
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
|
|
||||||
// To-do: delete this method?
|
|
||||||
// Values set here might be redundant: C7, 00, 00 seems to be default
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Specify which information is used to control the sequence of voltages applied to move the pixels
|
// Specify which information is used to control the sequence of voltages applied to move the pixels
|
||||||
@ -52,10 +49,10 @@ void GDEY0154D67::detachFromUpdate()
|
|||||||
{
|
{
|
||||||
switch (updateType) {
|
switch (updateType) {
|
||||||
case FAST:
|
case FAST:
|
||||||
return beginPolling(50, 500); // At least 500ms for fast refresh
|
return beginPolling(50, 300); // At least 300ms for fast refresh
|
||||||
case FULL:
|
case FULL:
|
||||||
default:
|
default:
|
||||||
return beginPolling(100, 2000); // At least 2 seconds for full refresh
|
return beginPolling(100, 1500); // At least 1.5 seconds for full refresh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -31,9 +31,9 @@ class GDEY0154D67 : public SSD16XX
|
|||||||
GDEY0154D67() : SSD16XX(width, height, supported) {}
|
GDEY0154D67() : SSD16XX(width, height, supported) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void configScanning() override;
|
void configScanning() override;
|
||||||
virtual void configWaveform() override;
|
void configWaveform() override;
|
||||||
virtual void configUpdateSequence() override;
|
void configUpdateSequence() override;
|
||||||
void detachFromUpdate() override;
|
void detachFromUpdate() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,9 +12,6 @@ void GDEY0213B74::configScanning()
|
|||||||
sendData(0xF9);
|
sendData(0xF9);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
|
|
||||||
// To-do: delete this method?
|
|
||||||
// Values set here might be redundant: F9, 00, 00 seems to be default
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Specify which information is used to control the sequence of voltages applied to move the pixels
|
// Specify which information is used to control the sequence of voltages applied to move the pixels
|
||||||
|
32
src/graphics/niche/Drivers/EInk/ZJY200200_0154DAAMFGN.h
Normal file
32
src/graphics/niche/Drivers/EInk/ZJY200200_0154DAAMFGN.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
E-Ink display driver
|
||||||
|
- ZJY200200-0154DAAMFGN
|
||||||
|
- Manufacturer: Zhongjingyuan
|
||||||
|
- Size: 1.54 inch
|
||||||
|
- Resolution: 200px x 200px
|
||||||
|
- Flex connector marking: FPC-B001
|
||||||
|
|
||||||
|
Note: as of Feb. 2025, these panels are used for "WeActStudio 1.54in B&W" display modules
|
||||||
|
|
||||||
|
This *is* a distinct panel, however the driver is currently identical to GDEY0154D67
|
||||||
|
We recognize it as separate now, to avoid breaking any custom builds if the drivers do need to diverge in future.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
|
#include "configuration.h"
|
||||||
|
|
||||||
|
#include "./GDEY0154D67.h"
|
||||||
|
|
||||||
|
namespace NicheGraphics::Drivers
|
||||||
|
{
|
||||||
|
|
||||||
|
typedef GDEY0154D67 ZJY200200_0154DAAMFGN;
|
||||||
|
|
||||||
|
} // namespace NicheGraphics::Drivers
|
||||||
|
|
||||||
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
Loading…
Reference in New Issue
Block a user