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
is it a component issue
Moderator: Benj
-
- Posts: 30
- Joined: Sat Dec 29, 2012 4:49 pm
- Has thanked: 9 times
- Been thanked: 5 times
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: is it a component issue
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)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: is it a component issue
Hi Pete,
I agree with Jac whats causing the issue.
I have attached one way of clearing.
Here is another.
Martin
I agree with Jac whats causing the issue.
I have attached one way of clearing.
Here is another.
Martin
- Attachments
-
- 877test2.fcfx
- (12.91 KiB) Downloaded 194 times
Martin
-
- Posts: 30
- Joined: Sat Dec 29, 2012 4:49 pm
- Has thanked: 9 times
- Been thanked: 5 times