Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
251 stars 48 forks source link

Screensaver does not work in i2c LCD example code when menu entry is removed #31

Closed SeeJayDee closed 5 years ago

SeeJayDee commented 5 years ago

In the example sketch LCDML_031_i2c_display_20x4 the screensaver function only works when bound to a menu entry.

At line 90 of LCDML_031_i2c_display_20x4.ino I changed: LCDML_add(17, LCDML_0, 6, "Screensaver", mFunc_screensaver); to: LCDML_add(17, LCDML_0, 6, "Screensaver", NULL); Everything else in the sketch was left as-is.

As a result, the screensaver function never runs despite the activation time having elapsed. LCDML.SCREEN_enable(...) was called properly in setup().


I tried to diagnose the cause of this myself but got lost amongst all the macros. >.>
Hardware: Arduino Uno R3, generic HD44780 display connected over i2c

Jomelo commented 5 years ago

Hello, i will check this tomorrow.

Jomelo commented 5 years ago

I fixed this bug in Version 1.3.0