LED - push button to turn on and off, also turns on if it gets dark by phillipmaxtanner

Cloned from Sketch Push button to turn on LED and leave it on when the button is released, step 3 by dthomas453

Use a pushbutton to turn on an LED and leave it on when the button is released also turns on if it gets dark

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:338110" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>