Page 1 of 1
is it a component issue
Posted: Sun Apr 12, 2015 8:02 pm
by peterhalloway
I am starting to play with e blocks again. I thought the simple program attached should just display the A/D input and therefore be a number between 0 and 255 on the glcd. However, when you increase the pot it gives the expected response but when you decrease it you get numbers above 255. I am not sure if it is a schoolboy error on my part or a problem with the glad component. Any help appreciated.
Pete
Re: is it a component issue
Posted: Sun Apr 12, 2015 8:17 pm
by kersing
Are you clearing the area you are printing to get rid of the previously displayed information? If not the last digit of a 3 digit number might still be visible when then value has only two digits (or two digits if the new value has only 1 digit)
Re: is it a component issue
Posted: Sun Apr 12, 2015 10:50 pm
by medelec35
Hi Pete,
I agree with Jac whats causing the issue.
I have attached one way of clearing.
Here is another.
Martin
Re: is it a component issue
Posted: Tue Apr 14, 2015 7:15 pm
by peterhalloway
thank you both. I knew it was likely to be me!
Pete