Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change int values with menu? #63

Closed
forntoh opened this issue May 16, 2022 Discussed in #47 · 1 comment · Fixed by #114
Closed

How to change int values with menu? #63

forntoh opened this issue May 16, 2022 Discussed in #47 · 1 comment · Fixed by #114
Milestone

Comments

@forntoh
Copy link
Owner

forntoh commented May 16, 2022

Discussed in #47

Originally posted by JimmyRigIt October 13, 2021
Let me start out by saying, This menu system is AWESOME! So much easier to implement than 500 line sketches. Thanks for all the hard work.

I am building a powder coating oven controller and need to set a number of int variables from 0 to 600..... this would be a massive char list...... surly their must be a better way.

Next step is saving/loading the values from an SD card so i can save multiple "programs". Will post that here if i get it working.

e.g. use ItemRange menu type with min, max and step

@jiriks74
Copy link

@forntoh So far I'm doing it with ItemInput and charset {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} - I just input multiple characters after one another. I'm then using .toInt() as it's uint_8t by default (which is a char basically). I don't remember if it works since I tested that part of the code a long time ago (I don't have a prototype of the device now) but from the code itself it loos like it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants