The first step to setting up my board was to open the Arduino IDE.
I already had Arduino on my home computer, but I needed to download it on my laptop.
Once I had the IDE installed on my laptop, I needed to add the board specific information to both my laptop and desktop.
I navigated to the Seeed Studio Wiki page for the boards I will be testing with.
About three-quarters down the page, under the Software section, there are instructions on how to update the Board Manager.
After copy and pasting the URL for the .json file, I navigated to File > Settings > Preferences in Arduino IDE.
I pasted the .json file into the Additional Boards Manager section and closed the Preferences tab.
Next I went to Tools > Board > Board Manager and installed the ESP 32 by Espressif.
The first step to setting up the RP2040 board was to download the MicroPython firmware.
Specifically, from this page I downloaded the v1.27.0 (2025-12-09) .uf2 file.
To use VSCode to program boards requires a few initial steps.
The first one is to create a new project folder for the board.
In this case, I created the folder rp2040Projects.
Inside that folder I created a hidden folder called .vscode.
Inside the vscode folder I created and added a file called tasks.json.
I was given the following code by Mr Dubick to add to the task file.
According to Mr Dubick, this code is designed to automate necessary steps such as finding the board no matter what port it is plugged into.
I started with using the example blink code found in the Arduino IDE to test the connection to my ESP32C6.
I wanted to try and reuse a code that I had put together last year for an arduino project, but I had a lot of trouble with it on the ESP32.
The code from my project from last year, simulates a random dice roll from 1-6 by selecting a random number and lighting up the corresponding combination of LED’s when a button is pressed.
I wanted to try and reuse this program for this week, since I felt it would help me work towards my final project.
I want to have random outputs based on specific inputs, such as a variety of emotives that can be picked from to play on the screen based on a touch sensor being pressed.
Since I had the dice code already figured out with a random generator I thought it would be a good place to start.
I opened up my TinkerCAD version of the project and used that to help me recreate the wiring and code in Wokwi.
In my repo is a zip folder containing files for my week 4.