You could just copy the code right into your main code? So change:
exports.connect = function (columns, rows, callback) {
to:
var keypad_connect = function (columns, rows, callback) {
and then use keypad_connect(...) instead of require("KeyPad") - hope that helps!
keypad_connect(...)
require("KeyPad")
@Gordon started
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.
You could just copy the code right into your main code? So change:
to:
and then use
keypad_connect(...)
instead ofrequire("KeyPad")
- hope that helps!