mirror of https://github.com/arendst/Tasmota.git
epaper display 29 fix
This commit is contained in:
parent
5c7812e964
commit
710b576d6b
|
@ -148,6 +148,8 @@ void Ssd1306Time(void)
|
||||||
|
|
||||||
void Ssd1306Refresh(void) // Every second
|
void Ssd1306Refresh(void) // Every second
|
||||||
{
|
{
|
||||||
|
if (!renderer) return;
|
||||||
|
|
||||||
if (Settings.display_mode) { // Mode 0 is User text
|
if (Settings.display_mode) { // Mode 0 is User text
|
||||||
switch (Settings.display_mode) {
|
switch (Settings.display_mode) {
|
||||||
case 1: // Time
|
case 1: // Time
|
||||||
|
|
|
@ -108,12 +108,13 @@ void EpdInitDriver29()
|
||||||
#define EPD_FONT_HEIGTH 12
|
#define EPD_FONT_HEIGTH 12
|
||||||
void EpdPrintLog29(void)
|
void EpdPrintLog29(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
disp_refresh--;
|
disp_refresh--;
|
||||||
if (!disp_refresh) {
|
if (!disp_refresh) {
|
||||||
disp_refresh = Settings.display_refresh;
|
disp_refresh = Settings.display_refresh;
|
||||||
if (Settings.display_rotate) {
|
//if (Settings.display_rotate) {
|
||||||
if (!disp_screen_buffer_cols) { DisplayAllocScreenBuffer(); }
|
if (!disp_screen_buffer_cols) { DisplayAllocScreenBuffer(); }
|
||||||
}
|
//}
|
||||||
|
|
||||||
char* txt = DisplayLogBuffer('\040');
|
char* txt = DisplayLogBuffer('\040');
|
||||||
if (txt != nullptr) {
|
if (txt != nullptr) {
|
||||||
|
@ -143,6 +144,8 @@ void EpdPrintLog29(void)
|
||||||
void EpdRefresh29(void) // Every second
|
void EpdRefresh29(void) // Every second
|
||||||
{
|
{
|
||||||
if (Settings.display_mode) { // Mode 0 is User text
|
if (Settings.display_mode) { // Mode 0 is User text
|
||||||
|
|
||||||
|
if (!renderer) return;
|
||||||
/*
|
/*
|
||||||
char tftdt[Settings.display_cols[0] +1];
|
char tftdt[Settings.display_cols[0] +1];
|
||||||
char date4[11]; // 24-04-2017
|
char date4[11]; // 24-04-2017
|
||||||
|
|
|
@ -142,6 +142,7 @@ void SH1106Time(void)
|
||||||
|
|
||||||
void SH1106Refresh(void) // Every second
|
void SH1106Refresh(void) // Every second
|
||||||
{
|
{
|
||||||
|
if (!renderer) return;
|
||||||
if (Settings.display_mode) { // Mode 0 is User text
|
if (Settings.display_mode) { // Mode 0 is User text
|
||||||
switch (Settings.display_mode) {
|
switch (Settings.display_mode) {
|
||||||
case 1: // Time
|
case 1: // Time
|
||||||
|
|
Loading…
Reference in New Issue