Difference between revisions of "Switch"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
= Related Tutorial Videos = | = Related Tutorial Videos = | ||
− | + | Digital Input | |
− | |||
− | |||
+ | <youtube>va1beT6sxLs</youtube> | ||
= Background = | = Background = |
Revision as of 22:50, 29 August 2020
Contents
Description
With this switch we can select which of the two sides are connected to the middle. If we move the switch right then the right pin is connected to the middle. If we move the switch left then the left pin is connected to the middle,
How to connect it electrically
Text
Image(s)
How to control it in MicroPython
1 from machine import Pin
2 in26 = Pin(26, Pin.IN)
3 print(in26.value())
A small Program in MicroPython
1 # todo
2 # code goes here
text
image(s)
Related Tutorial Videos
Digital Input
Background
text
image(s)