Tutorial by Examples

Here's the 'bare minimum' Arduino sketch. This can be loaded into the Arduino IDE by choosing File > Examples > 01. Basics > Bare Minimum. void setup() { // put your setup code here, to run once } void loop() { // put your main code here, to run repeatedly } Code in the setup...
Here's a short example that demonstrates the setup() and loop() functions. This can be loaded into the Arduino IDE by choosing File > Examples > 01. Basics > Blink. (Note: Most Arduino boards have an LED already connected to pin 13, but you may need to add an external LED to see the effects...
Software needed: Arduino IDE Setup Most Arduino-compatible boards have a USB port and come with a USB cable. Plug in the Arduino using the USB cable, and start up the Arduino IDE. Arduino IDE will start with a new sketch, typically with an emtpy setup() and loop() functions. This is enough to u...
You can also use this code to setup an LED with a button switch with a pull up resistor, this could preferably be with the next step after setting up the intial LED controller int buttonState = 0; // variable for reading the pushbutton status void setup() { // initialize the LED pin as an ...

Page 1 of 1