Digital Johnson
Member
I'm using Encoder library and am trying to find a way to preset the position. I would say I'm an intermediate level coder FWIW. I've looked at the library and because of the way the position variable is wrapped in a struct and the update function is designed to be called from an interrupt, I'm having a hard time figuring out a way to preset the position variable at startup. I know more advanced coders on forums aren't real keen on doing the work for others. I just need nudge in the right direction. Since Paul S. wrote the library, perhaps he can point me in the right direction. Thanks in advance for any help.
What I'm trying to do is use a 2 x 16 character LCD with a single encoder w/button to cycle through menu items and values. Double click to enter/exit the menu. Single click to enter/save & exit menu items or values. Rotate to scroll up/down the menu items or increase/decrease values. At startup I will have the values previously stored in the EEPROM loaded back into the variables.
What I'm trying to do is use a 2 x 16 character LCD with a single encoder w/button to cycle through menu items and values. Double click to enter/exit the menu. Single click to enter/save & exit menu items or values. Rotate to scroll up/down the menu items or increase/decrease values. At startup I will have the values previously stored in the EEPROM loaded back into the variables.
Last edited: