Update 'keypad_to_microcontroller.md'
This commit is contained in:
@@ -72,8 +72,8 @@ When no key is pressed, the 100k resistor will pull down the CPU pin to 0V.
|
|||||||
When a key is pressed, the CPU pin will rise up to a certain voltage, according to the following chart. Let's assume that
|
When a key is pressed, the CPU pin will rise up to a certain voltage, according to the following chart. Let's assume that
|
||||||
Vcc = 3.3V.
|
Vcc = 3.3V.
|
||||||
|
|
||||||
| key label | | value |
|
| key label | calculation | value |
|
||||||
| --- | --- | --- |
|
| ---- | ---- | ---- |
|
||||||
| # | 3.3 * 100k/100k = | 3.30V |
|
| # | 3.3 * 100k/100k = | 3.30V |
|
||||||
| 0 | 3.3 * 100k/103.3k = | 3.19V |
|
| 0 | 3.3 * 100k/103.3k = | 3.19V |
|
||||||
| * | 3.3 * 100k/106.6k = | 3.10V |
|
| * | 3.3 * 100k/106.6k = | 3.10V |
|
||||||
@@ -266,7 +266,7 @@ can happen.
|
|||||||
|
|
||||||
|
|
||||||
[Here](keyboard.c) is some example code to illustrate this decode; in C;
|
[Here](keyboard.c) is some example code to illustrate this decode; in C;
|
||||||
look for the symbol **FOUR_PIN**.
|
look for the symbol **FOUR_PIN**. Here is a working prototype. 
|
||||||
|
|
||||||
|
|
||||||
### Keyboard Debounce <a name="bounce" />
|
### Keyboard Debounce <a name="bounce" />
|
||||||
|
|||||||
Reference in New Issue
Block a user