https://github.com/nakkaya/ferret-arduino-keypad
https://github.com/nakkaya/ferret-arduino-keypad
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nakkaya/ferret-arduino-keypad
- Owner: nakkaya
- Created: 2018-06-29T11:09:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T11:09:55.000Z (about 7 years ago)
- Last Synced: 2025-01-23T09:42:54.232Z (5 months ago)
- Language: Clojure
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ferret-arduino-keypad
===============Wrapper for the Arduino keypad library.
#### Dependencies
- Keypad Library for Arduino - `http://playground.arduino.cc/Code/Keypad`
Available via Arduino library manager.
#### Usage
(require '[ferret-arduino-keypad.core :as keypad])
(def input (keypad/device
[[\1 \2 \3 \A] ;; Keypad Layout
[\4 \5 \6 \B]
[\7 \8 \9 \C]
[\# \0 \* \D]]
[22 23 24 25] ;; Row Pins
[26 27 28 29])) ;; Col Pins(forever
(println (keypad/wait-key input)))