This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is for an arduino uno. | |
// this was inspired by http://www.instructables.com/id/Arduino-Reed-Switch/?ALLSTEPS but | |
// changed to use the arduino internal pull up resistor: | |
// | |
// +-----------------+ | |
// | arduino GND -----reed_switch----\ | |
// | | | | |
// | 12 --------------------/ | |
// +-----------------+ | |
// |