Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Can't setCurrentValue

Author: deps88
07/11/2020 00:09:01
Hello!

at first, thank you very much for developing this library, it saves so much time smilie

Second, I'm having some troubles using it:

1. I'm using DFRobot LCD shield input, and when I try to change the value - buttons work upside down: the down button Increments the value, and Up button - Decrements. But in menu navigation it works correctly.
2. I have added an analog item, that I want to use just to display a value - so I've ticked Read-only for it, and now I can't update it's value from the sketch, am I doing it correctly:

menuItem.setCurrentValue(newValue)?

It stays at 0 on a display.

3. I have one more analog item for settings, assigned to EEPROM. I can't change this variable from the menu at all - stays at 0. I don't understand why - the only difference from the other Analog is the EEPROM address.

Please help, thank you!

Author: deps88
07/11/2020 00:17:40
Sorry looks like I've found what was the problem - the maximum value in the Designer was set to 0. After I've changed it, it works.

So now only item 1 left smilie

Author: davetcc
07/11/2020 06:06:22
 
I have added an analog item, that I want to use just to display a value - so I've ticked Read-only for it, and now I can't update its value from the sketch, am I doing it correctly


Having the maximum value set to 0 by default was not a good choice, from now on we'll default it to the maximum value of a signed short, which is probably a more reasonable default.

I'm using DFRobot LCD shield input, and when I try to change the value - buttons work upside down


I think what's needed here is an invert menu navigation option, so that we can correctly set the up / down buttons. Most people up until now have used rotary encoders, but yes, the editing works oddly for up / down. It's a fairly simple fix that we can probably do in the next patch release.

https://github.com/davetcc/tcMenuLib/issues/76

Author: davetcc
06/12/2020 12:20:25
 
I'm using DFRobot LCD shield input, and when I try to change the value - buttons work upside down


This should be fixed now in the latest version:

Libraries:
IoAbstraction 1.6.6
TcMenu 1.7.1




Register / Login  |  Desktop view  |  Jump to top of page