<?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>Arduino and button keeping variable in memory for multiple cases</title><link>/products/arduino/arduino-projects/b/blog/posts/arduino-and-button-keeping-variable-in-memory-for-multiple-cases</link><description>https://github.com/Fabiolus2020/ButtonKeepingValuesForMultipleCases 


sketch 1: PushButtonKeepingValue2cases.ino


const int buttonPin = 7; // the pin that the pushbutton is attached to


int buttonState = 0; // current state of the button
int ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator></channel></rss>