Code Blocks

Functions

Function writing is a fundamental part of developing code. It can feel very abstract -- but is a skill worth developing. The video below used an RGB led as a platform for exploring function writing. Arrays are also considered. https://vimeo.com/465090263

more...

FUNctions: A Deep Dive

FUNctions are a fundamental programming tool. In this Code Block I am going to explore a number of ways that we can create and use functions. Why use FUNctions? In programming we use functions for many reasons: -- organize and...

more...

if…else

This Code Block explores the basic flow control structure of if...else. The state of a button is used to control the color of an RGB LED. The logic of using if...else is generally outlined. https://vimeo.com/464530640

more...

Mapping Inputs to Outputs

When building interactive or agent based systems you will find many cases where you need to map inputs to outputs. Analog sensors such as light detectors, distance detectors, potentiometers, joysticks and microphones are read with either analogRead() or special libraries...

more...

Serial Communication Basics

This Code Block introduces the Arduino Serial object. Basic use and syntax are introduced. Comparing Arduino 1.x and 2.x As of 2024 we will use Arduino IDE 2.x in our introductory class. This version is a fork of the VSCode...

more...