Skip to content

Commit b22bcb3

Browse files
Correction to diodes.md
Description places the diodes in a Reverse Bias (Cathode on the High side, Anode on the Low side) which would prevent current flow even when the switch is pressed. Columns must be pulled high and rows low to match the diagram and work. Looping columns vs rows first is immaterial, although it could still be rewritten to loop rows first as long as columns are the ones pulled high and not the rows.
1 parent 69d88ba commit b22bcb3

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)