var keypad = require("KeyPad").connect([B2,B3,B4,B5],[B6,B7,B8,B9]);
and printed output of keypad.read() in a while loop. This produced output like 38 28 08 312 212 012 etc. depending on the key pressed.
I tested the same keypad using the same pin connections on the same device in an arduino sketch where it worked perfectly.
Anyway, since there was at least some output, I was going to start hacking on the source code but in the meantime, is anyone using a keypad successfully?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm trying to use the keypad module without success. The recommended:
is never called back.
I also tried
and printed output of
keypad.read()
in a while loop. This produced output like 38 28 08 312 212 012 etc. depending on the key pressed.I tested the same keypad using the same pin connections on the same device in an arduino sketch where it worked perfectly.
Anyway, since there was at least some output, I was going to start hacking on the source code but in the meantime, is anyone using a keypad successfully?
Thanks for any pointers ...