AndrewMascolo / OnewireKeypad

One Wire Keypad
MIT License
31 stars 14 forks source link

Problem 0 and # keys value #8

Closed tuananhdn87 closed 6 years ago

tuananhdn87 commented 6 years ago

Hi, Im using 4x4 keypad, column registors are 1k, row registor are 4.7k, 1k to GND. 1 to * keys works perfectly, but two buttons (0 and #) return wrong char: Press 0 button return 0 sometime # Press # button return D

what's wrong with me?

tuananhdn87 commented 6 years ago

Solved, I change 1.9f in if (Reading <= (Vfinal + 1.9f )) { to if (Reading <= Vfinal) { on .h file All buttons works.

AndrewMascolo commented 6 years ago

The constructor has a precision value, change it to fix your issue.

Sent from my iPhone

On Nov 1, 2017, at 4:57 AM, tuananhdn87 notifications@github.com wrote:

Solved, I change 1.9f in if (Reading <= (Vfinal + 1.9f )) { to if (Reading <= Vfinal) {

All buttons works.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.