Spirik / GEM

Good Enough Menu for Arduino
GNU Lesser General Public License v3.0
239 stars 36 forks source link

Editing number value... #74

Closed zandernc closed 1 year ago

zandernc commented 1 year ago

Now that we have this working on my Adafruit M0 and Featherwing OLED, I'm having trouble editing the number value... If I set the highest digit ("-" by default) to 0 or blank, the number becomes 512. There doesn't seem to be a way to add the negative value back in except for changing the 5 to a "-", the 1 to a 5, the 2 to a 1, and adding a digit for the 2... or am I missing something? (I have tried adding buttons to the sketch, for instance, left but it doesn't seem like you can move the cursor left to create an additional most significant digit. Thank you so much!

Spirik commented 1 year ago

Yes indeed, you can not add digits/characters to the beginning of the editable string, all editing is done in place of the existing digit/character (plus the ability to add digit/character at the end of the string). It is a limitation of current approach to edition of a variable.

zandernc commented 1 year ago

Thank you for the clarification! Easy to work with.