Using Keypad on ESP8266 (pulldown on pins not supported) #5836
Replies: 1 comment
-
Posted at 2017-08-29 by @gfwilliams You could just copy the code right into your main code? So change:
to:
and then use Posted at 2017-08-29 by n00b Thanks for the reply @gfwilliams. Sorry I wasn't clear, I tried to do that but I couldn't understand the keypad.js enough to successfully modify it for ESP8266. I tried to switch all the "input_pulldown" to "input_pullup" and set the rows to low instead of high but no dice. Any hint on how to accomplish this in general? Thanks again! PS. Kudos & great work with Espruino! made MCU development so accessible to an old JS hack like me :) I bought all 3 variants of the official espruino board, but planning to use NodeMCU boards as "throwaway" project boards. Posted at 2017-08-29 by @gfwilliams Wow, thanks! Ahh, ok - yes, I'm pretty sure it is possible. What about this:
I haven't tried it but I think it's ok - basically I had to invert everything, any time a pin was written or read. Posted at 2017-08-29 by n00b That works perfect!! Thanks, you're the best! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-08-29 by n00b
Has anyone ever successfully used a 4x4 switch matrix on ESP8266? Since ESP8266 doesn't support "input_pulldown" on its pins in Espruino, the module from http://www.espruino.com/modules/KeyPad.js doesn't work. Is it possible to modify that module to use "input_pullup" instead?
Beta Was this translation helpful? Give feedback.
All reactions