Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
arduino_boards:multiplex_switches [2020/03/30 22:56] admin [Mapping Problem] |
arduino_boards:multiplex_switches [2020/03/30 23:16] admin [Code] |
||
---|---|---|---|
Line 12: | Line 12: | ||
---- | ---- | ||
==== Code ==== | ==== Code ==== | ||
- | {{ :arduino_boards:multiplex_button_02.zip |}} | ||
+ | {{ :arduino_boards:multiplex_button_02.zip |}} | ||
---- | ---- | ||
Line 22: | Line 22: | ||
To spread the results equally from 0 to 15 I used in the code the mapping function like that: | To spread the results equally from 0 to 15 I used in the code the mapping function like that: | ||
- | map(my_value, -30, 981, 0, 16) | + | map(my_value, -32, 992, 0, 16) |
---- | ---- |