Participant docs

Session 2 — Wiring Up & Writing Code

Welcome back

Now that we have our components connected, we need to write the code to control the LED.

Microcontrollers can be programmed using a variety of different programming languages. Some common ones are MicroPython (a light version of the popular language Python) and Embedded Rust (a light version of the already-light language Rust). For our Arduino, we're going to be using another common language, C++.

On the left side of the screen is the window where we'll write our code for the Arduino. Right now our circuit isn't doing anything, because we haven't written any code to tell the pins what to output. There are two sections in our code window — the setup section and the loop section. We're going to be writing our code in the setup section for now.

Wokwi's code editor next to the simulated Arduino Uno|586

Try more components

Now, have a look at the other components you can add to your design. In the kit you'll be getting, you'll have about 6 buttons and 15 LEDs. Think of a design you can make with these components and add it to your simulation. Have a look online for more code you can use — there's so much more you can do!


Original slides: Traces: Guide Slides!