If you've already completed Steps 1 and 2, you can skip to Step 3. Please help your teammates if they are stuck!
- Refer to Tutorial 1 for instructions on how to install Git. You only need to read the first page of this tutorial for the sake of this lab exercise. You will complete the rest later on.
- Verify that Git has been installed by running the following command in your terminal:
If Git has been installed correctly, you should see the version number of Git displayed in the terminal.
git --version
- Now, let's clone this repository to your local machine. Go to a suitable directory, and run the following command in your terminal:
git clone https://github.com/UCSD-ECE140/ECE140-WI26-Lab1.git
- Navigate to the cloned repository by running the following command in your terminal:
cd ECE140-WI25-Lab1 - Now, run
lsin your terminal to see the contents of the repository. You should see amain.pyfile, arequirements.txtfile, and aREADME.mdfile.
-
Indepth tutorial for prerequesites
-
Open the extensions tab in VSCode, and search for PlatformIO IDE. Click install on the first result.
-
Once installed, click on the ant/alien icon that appears on the left menu bar of VSCode. It will install all the required packages. This may take a few minutes. Do not close the editor or open a new folder during this process.
Plug in the ESP32 board to your computer via the provided cable, and you're good to go!
In addition to installing PlatformIO, you'll need to install the drivers for the ESP32 board. Follow the tutorial linked above for instructions on how to do this.
-
Once everything is successfuly installed, and you restarted VSCode, click the Pick a folder button, and select the folder of the repository you just cloned. This should automatically initialize everything.
-
Complete the tasks in
src/main.cpp- Once you complete task 1, comment the code out, and complete task 2.