Toggle Switches - Reliable Reading

An example sketch that will read a simple toggle switch reliably, irrespective of the circuit design.

Feb 5, 2021

15974 views

4 respects

Components and supplies

1

Arduino UNO

1

Toggle Switch, Toggle

1

Resistor 10k ohm

4

Jumper wires (generic)

Apps and platforms

1

Arduino IDE

Project description

Code

Reading a Toggle Switch

c_cpp

Reliably read a toggle switch, irrespective of circuit configuration.

Comments

Only logged in users can leave comments

ronbentley1

0 Followers

0 Projects

Table of contents

Intro

4

0