[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Can't setCurrentValue RSS feed
Forum Index » tcMenu Arduinio library
Author Message
deps88


Joined: Nov 6, 2020
Messages: 2
Offline
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!
deps88


Joined: Nov 6, 2020
Messages: 2
Offline
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
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
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
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
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
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.