Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Section 8.3 LED with code

Next I want you to remove the button from the circuit and wire up the LED like you had it when the positive end was connected to VOUT or 3.3V. Except this time I want you to hook the positive end of the circuit to pin A2. Then edit your blink code to blink pin A2. Take a look at the blink code. Right now the code is blinking pin D13. How do you think you need to change the code to blink pin A2? Hereโ€™s what my circuit looks like for this one. I wonโ€™t include code for this one since you just need to change one line of code.
Figure 8.3.1. CircuitPlayground Express connected to an LED with an analog pin