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

tcMenu Arduinio library » Use Menu Variables

Author: Enemy
11/09/2021 21:39:35
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.

Author: davetcc
12/09/2021 07:44:05
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.





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