Reading a button's status by phongphanthanh98

With this you can read a button's status and send it to the monitor's screen on your computer.

See how the wiring and setting up are done in this link below: (in Vietnamese) http://arduino.vn/bai-viet/80-su-dung-digitalread-va-giao-tiep-serial-digital-read-serial

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:362112" 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>