[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.

Use Menu Variables RSS feed
Forum Index » tcMenu Arduinio library
Author Message
Enemy


Joined: Sep 11, 2021
Messages: 1
Offline
Hello,

Im sorry if this question seems incredibly Stupid to you. I believe I red the Documentation carefully enough but I am 100% clueless, so maybe I dont understand what some functions mean and I misinterpret them.

I am wondering because I think its a very basic function but I cannot seem the explanation for it, which doesnt make sense.


I want to use the Values stored in each Variable in programs following the Code in the Loop.


Basically I am building an Oven right now. I want to set the Temperature with the LCD1602 DfRobot (with the lcd menu I already created which works flawlessly). The Arduino should then compare the Sensor Temp Values with the Value which I set with the tcMenu but I cannot find any function on how to read the value/use it in following programs.


As of now, I only found:
To get the maximum value for any item

int maxVal = menuItem.getMaximumValue();

(like menuItem.getValue(example); ????? )

I would be very glad if anyone can help me figure this out or atleast point me in the right direction.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Hi there,

Yes, it is very easy to get the values that are stored in menu items. Each menu item type has a link to their associated documentation here:

https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/#specific-menu-item-documentation

For example, the Analog menu item section describing how to access it from your code is documented here:

https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/analog-menu-item/#working-with-analog-items-in-code

You can also access all the menu-item specific documentation pages from the designer UI, at the top of the properties for any menu item there is a link to the online documentation.

 
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.