<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>5&amp;quot; TFT Display and Module RA8875</title><link>/challenges-projects/design-challenges/designforacause/b/blog/posts/5-tft-display-and-module-ra8875</link><description>I received the Adafruit 5.0&amp;quot; 40-pin TFT Display 800x480 with Touchscreen PRODUCT ID: 1596 and the RA8875 Driver Board for 40-pin TFT Touch Displays 800 x 480 Max PRODUCT ID: 1590.I had a hard time getting the display to work with the MKR1000 dev...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: 5&amp;quot; TFT Display and Module RA8875</title><link>https://community.element14.com/challenges-projects/design-challenges/designforacause/b/blog/posts/5-tft-display-and-module-ra8875</link><pubDate>Wed, 22 Apr 2020 17:04:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1449e8cc-fa01-4617-bced-9ba076bf49d3</guid><dc:creator>aspork42</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;There are some other simple ways to debounce. Just read the pin. If it is HIGH (aka pressed) then do a delay(100) and read the pin again to see if it is still HIGH. If so, then you react. Like the post above mentioned, break the issue down to its core. Make a new sketch that only reads the touchscreen and does something like write to serial port or flips an LED on or off. Writing to serial port is a little tricky since it is blocking code and could mask the issue; so be sure to use a fast baud rate and print as little as possible - like a single character.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Simple debounce looks like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;if(digitalRead(pin){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(50); // debounce&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(digitalRead(pin){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //react&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Check out this post for a more in-depth look:&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://learn.adafruit.com/make-it-switch/debouncing" rel="nofollow ugc noopener" target="_blank" title="https://learn.adafruit.com/make-it-switch/debouncing"&gt;https://learn.adafruit.com/make-it-switch/debouncing&lt;/a&gt; &lt;/p&gt;&lt;p&gt;This means the pin must be depressed for at least 50 ms before the program will react. That is fast enough not to be noticed by a human, but slow enough for the system to settle out any contact bounce.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5216&amp;AppID=206&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: 5&amp;quot; TFT Display and Module RA8875</title><link>https://community.element14.com/challenges-projects/design-challenges/designforacause/b/blog/posts/5-tft-display-and-module-ra8875</link><pubDate>Tue, 24 Jul 2018 16:38:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1449e8cc-fa01-4617-bced-9ba076bf49d3</guid><dc:creator>genebren</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Nice update on your design challenge project.&amp;nbsp; Good work on getting everything connected and running.&amp;nbsp; That was some first class detective work there.&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5216&amp;AppID=206&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>