jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
Why this code not working as expected?
According to code, If + button is pressed the adc variable value should go upto 255 and stop. If decrement button is pressed it should go to min 0 and stop. adc variable is multiplied by 2 and written to POT. So, for 255 steps I should get 510 max adc value from channel 3. It is incrementing beyond range.
According to code, If + button is pressed the adc variable value should go upto 255 and stop. If decrement button is pressed it should go to min 0 and stop. adc variable is multiplied by 2 and written to POT. So, for 255 steps I should get 510 max adc value from channel 3. It is incrementing beyond range.