TechBoyInventor:
I am using an Adafruit 3.5 inch tft and am trying to adjust the individual digits of a number from 0 to 9.
A very rough outline might be:
Build a function which uses the encoder to select a digit to be operated on. This would imply that each digit of the number is held in - or can be broken out into - its own variable.
If the encoder has an integral switch use that to toggle to a mode which
uses a different function to increment/decrement the selected digit.
when mode is switched back you can do something like -
number = 1s digit + 10s digit * 10 + 100s digit * 100, etc.
Read up on arrays.