Arduino success!

Karl W4KRL W4KRL at arrl.net
Sun Mar 17 15:31:49 CDT 2013



Tacoistas,

 

Thanks for all the help you have given me with the problem I ran into on my
Arduino touch screen display. 

 

Every piece of my code worked perfectly when I ran it under test conditions.
When I put it all together the screen would detect touches but the display
would not update. I blamed my lack of C++ knowledge, the compiler, and the
cheap eBay product.

 

Today I completely rewrote the program without using object oriented
features. Once again I could place multiple buttons on the screen and detect
that they were being touched but the screen would not change in response to
code. 

 

I was showing the problem to my son and explaining what each part did. As
soon as we got to the part that uses two analog pins for both touch screen
detection and LCD control I realized that the touch screen should release
the pins for LCD control as soon as a touch was detected otherwise the LCD
would not respond to commands. Adding two lines of code to the touch
detection function made everything work! (Even the object oriented program.)


 

Lesson learned: correctly control your hardware!

 

Next step: interface with the miniVNA.

 

73 Karl W4KRL

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://amrad.org/pipermail/tacos/attachments/20130317/439715a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 569 bytes
Desc: not available
URL: <http://amrad.org/pipermail/tacos/attachments/20130317/439715a4/attachment.gif>


More information about the Tacos mailing list