From 134cc7c02f8ae48aa1b786a716845acf7ab6c077 Mon Sep 17 00:00:00 2001 From: Pat Beirne Date: Mon, 9 Dec 2024 12:04:00 -0500 Subject: [PATCH] Update 'keypad_to_microcontroller.md' --- keypad_to_microcontroller.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keypad_to_microcontroller.md b/keypad_to_microcontroller.md index 8459dea..7faa421 100644 --- a/keypad_to_microcontroller.md +++ b/keypad_to_microcontroller.md @@ -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 Vcc = 3.3V. -| key label | | value | -| --- | --- | --- | +| key label | calculation | value | +| ---- | ---- | ---- | | # | 3.3 * 100k/100k = | 3.30V | | 0 | 3.3 * 100k/103.3k = | 3.19V | | * | 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; -look for the symbol **FOUR_PIN**. +look for the symbol **FOUR_PIN**. Here is a working prototype. ![working](keypad.jpg) ### Keyboard Debounce