Skip to content

Commit 063a499

Browse files
authored
Merge pull request #12 from bryanhunwardsen/main
Correction to diodes.md
2 parents 1bcb1e2 + b22bcb3 commit 063a499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/diodes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ So now we know the parts involved and how to wire it but lets talk about why.
4848

4949
So lets make a very simple fantasy firmware call it Foo-MK, in our firmware we need to tell the computer when a key is pressed.
5050
So we need to figure that out for our selfs, how do we do this we know that we have a n number of row pins and n number of column pins.
51-
What we will do is loop over every row and for each row pin pull it high ( meaning that we make that pin output 3.3v or 5v ).
52-
Next we will scan every column pin and see if any of them are being pulled high ( note we did not set them high so they would default to low or 0v).
51+
What we will do is loop over every column and for each column pin pull it high ( meaning that we make that pin output 3.3v or 5v ).
52+
Next we will scan every row pin and see if any of them are being pulled high ( note we did not set them high so they would default to low or 0v).
5353
If we then find one that is high we can assume its because the switch at that intersection is being pushed.
5454

5555
Thats all well and good but what does the diode do you my rightly be thinking. Well lets get into an edge case.... well something that may seem like an edge case but happens all the time.

0 commit comments

Comments
 (0)