These instructions must be followed in order.
-
Download and install the Arduino IDE from Arduino directly here. Do not install from the PPA.
-
Add the esp32 board by following these instructions. Then in Tools > Board select
ESP32 Dev Module. -
Install the libraries according to these instructions. Make sure to find the correct section for your class (i.e. 1001, 2001, 2002).
-
In a terminal, run
sudo apt install -y python-pip. After that finishes, runpip2 install --user pyserial. -
You will now be able to compile the template project.