The programs presented here overlap with those in that thread but I have put my own spin on using millis () and described the programs in my own way. Between the two you should have a clearer understanding of how to use millis () for non blocking timing. In this thread I will try to explain the principles of using millis () for timing and apply it to some common areas where questions arise ...
Disconnect the USB cable of the Arduino board from your computer. Select Tools > Port from the Arduino IDE menus. Take note of the ports, if any, listed in the menu. Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential. Connect the Arduino board to your computer with a USB cable. Select Tools > Port from the Arduino IDE menus. - If a ...
Fortunately the amazing Arduino community picked up the slack by providing well maintained unofficial support software. The current recommendation is to use the excellent ATTinyCore boards platform, which has DigiSpark support.
Many times people ask questions about how to fix their LCDs that don't display or displays wrong/random stuff. The following information, when supplied with your thread, will get your problem solved the quickest way. Fixing these problems ends up being mostly a frustrating experience unless the following are provided upfront without any "BUT"s. I believe several other helpers here would agree ...
You declare variables in the scope of setup (), and you try to use them in the scope of loop (), so the compiler tells you that you haven't declared them to be used in the scope of loop () . . . . What's the confusion? Put your variable declarations before setup () by where all of your #define 's are and they'll be global.
A typical Arduino ICSP header has six pins, arranged 2x3. The article Connecting the Programmer: In-Circuit Serial Programming (ICSP) at Sparkfun describes some of the functions of ICSP pins, which include MISO, MOSI, SCK, V+, Ground, and Reset. Each ICSP pin usually is cross-connected to another Arduino pin with the same name or function.