Professional Documents
Culture Documents
About: Most of my instructables will be tutorials for Atmel microcontrollers, Arduino, or Raspberrypi. I
try to show concepts that you can use in your own programs by creating simple programs and circuits to
illus... More About JRV31 »
When you use the delay() function your program stops and nothing else can happen during the delay.
That is easy, but what if you want to have something else going on during the delay?
This tutorial is a simple sketch and circuit to show how this is done.
Arduino
Breadboard
Jumper wires
Pushbutton switch
*
* The anode of a red LED is connected to pin 10 with a
* The red LED blinks on for one second then off for one
* second.
*********************************************************/
int toggle = 1;
/**********************************************
* setup() function
**********************************************/
void setup()
/**********************************************
* loop() function
**********************************************/
void loop()