* Arduino Course Code from Universidad de Granada's Arduino Course. ** Usage If you want to use arduino-cli instead of the official Arduino IDE, you can use compile.sh to compile and upload the Sketch to the board. For example: #+BEGIN_SRC sh arduino-cli sketch new Test ./compile.sh Test #+END_SRC If you want to see the output of the Serial port, you have to identify the device: #+BEGIN_SRC sh arduino-cli board list #+END_SRC Then you can see the output of the device, let's assume that the device is /dev/ttyACM0: #+BEGIN_SRC sh cat /dev/ttyACM0 #+END_SRC If you get a /Permission denied/, you have to add your user to the group of the serial port (in this case /dev/ttyACM0). To check the group of the device: #+BEGIN_SRC sh ls -la /dev/ttyACM0 #+END_SRC Then add your user to the group (in this case the group is dialout and the user is user) #+BEGIN_SRC sh sudo usermod -aG dialout user #+END_SRC ** ESP8266 During the *Week 4*, we used the NodeMCU instead of the Arduino uno, in this case to compile and upload the sketch (in this case we'll use the sketch Test): #+BEGIN_SRC sh ./compile_mcu.sh Test #+END_SRC