For now we will just use one button for ON and one for OFF. So we want to grab the when.click from the ButtonOn and ButtonOff blocks.
- To that we will add a Set block for theVar variable. Also add the value of “on”to this.
- Next we will be calling on the SendToParticle Procedure.
That is it!
Once this App is loaded onto your phone it will turn the built-in LED, attached to Pin 7 on the Particle device, on or off.
Page last edited March 08, 2024
Text editor powered by tinymce.