Getting Inputs
In this section, we’ll look at how you can use buttons, switches and more to get input into your circuits.
Components you will need
-
Particle Microcontroller
-
Inputs (see guides below)
Some background
Step By Step
- Tutorial: Tutorial: Using a pushbutton
- Tutorial: Tutorial: Using a switch
- Tutorial: Tutorial: Using a potentiometer
Coding Concepts
Practice Exercise
Exercise
Combine a switch and potentiometer. The switch should turn on and off the light while the potentiometer will fade up and down the light (but only when its on).