You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/diodes.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@ So now we know the parts involved and how to wire it but lets talk about why.
48
48
49
49
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.
50
50
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).
53
53
If we then find one that is high we can assume its because the switch at that intersection is being pushed.
54
54
55
55
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