Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nakkaya/ferret-arduino-keypad


https://github.com/nakkaya/ferret-arduino-keypad

Last synced: about 1 month ago
JSON representation

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)))