Unsigned long showTime = 10000UL // 120000 milliseconds (2 minutes) See the idleScreen() function for the flickering issue I'm learning quite a bit as I go along, with this, by the way! Unless you've got a way around that? Which I'm sure you have. Thanks! I've since discovered that, because I now have it printing two sets of temperatures on the idle screen from digital temperature sensors, which flicker every half a second or so as they update (due to the sensors.requestTemperatures() command) that I can't 'slow down' the updating of this without introducing a delay thus making the boolean idea a bit redundant. The code to do that is missing." but then I missed the shownumber block in your previous post. I was actually referring to your "When you do display a value to the LCD, you need to set showedNumber. I wrote that without access to the Arduino IDE, and will try it when I get home this evening if so. Unsigned long showTime = 120000UL // 15 minutes (use whatever value you like here) Will work out how to trigger other hardware in due course. How can I get it to 'clear' the display after, say, xx minutes of it displaying the same string without any 'new' serial data, and revert back to an "idle" screen? Cos at the moment it's just showing the last received serial data It successfully shows up phone numbers when I ring the phone anyway OK it seems to work fine now!! I've got it showing AT responses from my Sony Ericsson T630 on the LCD using + and, as the start and end characters. Where the comment says Process the packet, that can include printing the packet on the LCD. data has been read OR because an end of We are here either because all pending serial ![]() Read all serial data available, as fast as possible If the packet has start and end markers, it is easy to read all the data: #define SOP '' ![]() How is a packet defined? How do you know that you are starting to read a packet? How do you know when you are done reading that packet?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |