Section 2.2 Day 3 In-Class: Digital Inputs and the Oscilloscope
Today we’ll start reading the outside world with the STM32C031C6. We’ll open with a code review of the counter you wrote for Lab 1. Then we’ll set up the Analog Discovery 2 oscilloscope on the LEDs that program is already blinking, so that we have an instrument for seeing what a pin is actually doing. After that comes the button itself: we’ll wire it to one of the Nucleo’s pins, find in the reference manual (RM0490) the bits that make a pin an input, and read it in code. The last part of the hour is a set of button exercises that are the start of your Lab 2 work.
