Wemos D1 Push Button

Objectives:

Build a circuit and program that allow you to control when a light turns on and off.

Parts

Directions

Clone https://githubcom/awoehler/electronics.network
Open Examples/ButtonLight/ButtonLight.ino
Connect one side of a button to D3 and the other side to GND. Since D3 and D4 have built in resistors we don't need to add any other items to make this circuit work.
Compile and upload the sketch to the board. 

Exercises

  1. Change the program so that the button toggles the light on and off.

Comments

Popular posts from this blog

Wemos D1 Blink

Lab Tools, Supplies & Reviews