RESOLVED [emonGLCD] test sketch with partially scrambled text

Hi all! I just finished building my first emon component, the emonGLCD!
All is working fine (I think), except the text after "switches:" from the emonGLCD test sketch.

You can see this in a short Youtube video: http://youtu.be/y34tiYFlCII?hd=1
Can someone tell me if I did something wrong? Or is this just the test sketch?

RobertK's picture

Re: RESOLVED [emonGLCD] test sketch with partially scrambled text

When I looked at the test sketch a while ago, the switch logic was inverted. Try pressing all 3 switches and then releasing one out of the 3 in turn - if you read sensible text, there's your answer. [Explanation: The screen is cleared before each rewrite, pixels add each time something is written. If two or all 3 switches are writing to the same place, you have all 3 messages superimposed]. 

fluppie007's picture

Re: RESOLVED [emonGLCD] test sketch with partially scrambled text

Hi Robert, that did the trick!! Thank you.

 

To resolve the 'issue', I adapted line 147 till 149:

if (S1==1) glcd.drawString_P(60,  55, PSTR("Enter"));
if (S2==1) glcd.drawString_P(60,  55, PSTR("Up"));
if (S3==1) glcd.drawString_P(60,  55, PSTR("Down"));

I just changed the S=0 values to S=1. All works fine :-).

glyn.hudson's picture

Re: RESOLVED [emonGLCD] test sketch with partially scrambled text

Ah, in incomplete sketch must has been pushed it github. Thanks for this fix I've updated the github example. 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.