To generate a PWM signal
To produce a sound on a buzzer with a specific frequency
To control the brightness of an LED
To read analog values
tone(pin, frequency, duration)
tone(pin, duration, frequency)
tone(frequency, pin, duration)
tone(pin)
1 Hz to 1 kHz
31 Hz to 65535 Hz
100 Hz to 10 kHz
500 Hz to 1 MHz
Servo.h
Motor.h
Wire.h
LCD.h
0 to 90 degrees
0 to 180 degrees
0 to 360 degrees
-90 to 90 degrees
servo.attach()
servo.write()
servo.move()
servo.setPosition()
Analog pins
PWM-enabled digital pins
Ground pins
Interrupt pins
LiquidCrystal.h
LCDDriver.h
Display.h
It initializes the LCD with the number of columns and rows.
It prints a message to the LCD.
It clears the LCD display.
It changes the LCD backlight.
Use lcd.setCursor(0, 0) and lcd.print("Text").
Use lcd.begin(0, 0) and lcd.display("Text").
Use lcd.print(0, "Text")
Use lcd.text("Text", 0)