arduino for ubuntu code example
Example 1: arduino for command
// Dim an LED using a PWM pin
int PWMpin = 10; // LED in series with 470 ohm resistor on pin 10
void setup() {
// no setup needed
}
void loop() {
for (int i = 0; i <= 255; i++) {
analogWrite(PWMpin, i);
delay(10);
}
}
Example 2: install arduino ide ubuntu
$ tar -xvf arduino-1.8.12-linux64.tar.xz
Example 3: install arduino ide ubuntu
$ cd arduino-1.8.12/
$ sudo ./install.sh