Hi All,
I am trying to store two variables within a while loop after reading a rotary encoder but it stores the same value of w1 when switching over to w2
store different values into two variables from rotary encoder
I am trying to store two variables within a while loop after reading a rotary encoder but it stores the same value of w1 when switching over to w2
Code (C):
- #include<PinChangeInterrupt.h>
- #include<Wire.h>
- #include<hd44780.h>
- #include<hd44780ioClass/hd44780_I2Cexp.h>
- hd44780_I2Cexp lcd;
- // Const Variables and pin assinged
- constbyte ENC_SW =3; // Encoder Switch
- constbyte ENC_PinA =6; // PIN A of Encoder
- constbyte ENC_PinB =8; // PIN B of Encoder
- constbyte buttonPin =9; // Weld button
- //...