Skip to content

Commit

Permalink
Improve switch section of snekboard lesson
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Jan 29, 2020
1 parent 2d256b9 commit 39eae85
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions doc/snekboard/snekboard.adoc
Expand Up @@ -245,11 +245,12 @@ how the motor responds.

== Switches

Using switches as inputs to Snekboard is slightly tricky. That's
because Snekboard inputs are normally set to read sensors that produce
a range of values, like distance and light sensors. These kinds of
input devices are called _analog sensors_. We want to switches to
either be 1 or 0, which is called a _digital sensor_.
Using switches (also known as “touch sensors”) with Snekboard is
slightly tricky. That's because Snekboard inputs are normally set to
read sensors that produce a range of values, like distance and light
sensors. These kinds of input devices are called _analog sensors_. We
want to switches to either be 1 or 0, which is called a _digital
sensor_.

Here's what you you can get if you hook a switch up to Snekboard.

Expand Down

0 comments on commit 39eae85

Please sign in to comment.