| Library | Purpose | |---------|---------| | LiquidCrystal.h | Control LCD displays (16x2, 20x4) | | Servo.h | Control up to 12 servos | | Stepper.h | Control stepper motors | | DHT.h | Read temperature/humidity sensors | | SPI.h / Wire.h | SPI and I2C communication | 6. Debugging and Serial Communication The Serial Monitor (Tools → Serial Monitor) is essential for debugging.
void loop() digitalWrite(13, HIGH); // Turn LED on delay(1000); // Wait 1 second digitalWrite(13, LOW); // Turn LED off delay(1000); // Wait 1 second arduino uno programacion ejemplos
void loop() buttonState = digitalRead(buttonPin); | Library | Purpose | |---------|---------| | LiquidCrystal
void loop() // Repeated execution code here // Turn LED on delay(1000)
#include <Servo.h> Servo myservo; int pos = 0;