is it a component issue

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
peterhalloway
Posts: 30
Joined: Sat Dec 29, 2012 4:49 pm
Has thanked: 9 times
Been thanked: 5 times

is it a component issue

Post 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
Attachments
877test.fcfx
(12.51 KiB) Downloaded 188 times

kersing
Valued Contributor
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

Post 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)
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

medelec35
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

Post by medelec35 »

Hi Pete,
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

peterhalloway
Posts: 30
Joined: Sat Dec 29, 2012 4:49 pm
Has thanked: 9 times
Been thanked: 5 times

Re: is it a component issue

Post by peterhalloway »

thank you both. I knew it was likely to be me!

Pete

Post Reply