Hi, Can you connect a toggle switch to an arduino and read its state?
i need to read if the toggle switch is up or down for different modes of my robot, example, if the switch us up, it will be in mode A. if the switch is flipped down, it will go to mode B