Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nakkaya/ferret-arduino-adafruit-pcd8544
https://github.com/nakkaya/ferret-arduino-adafruit-pcd8544
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nakkaya/ferret-arduino-adafruit-pcd8544
- Owner: nakkaya
- Created: 2018-06-29T11:12:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-20T10:47:02.000Z (almost 6 years ago)
- Last Synced: 2024-10-14T08:13:33.830Z (3 months ago)
- Language: Clojure
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ferret-arduino-adafruit-pcd8544
===============Wrapper for the Adafruit Arduino driver for PC8544, most commonly found in Nokia 5110.
#### Dependencies
- Adafruit-PCD8544-Nokia-5110-LCD-library - `https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library`
- Adafruit-GFX-Library - `https://github.com/adafruit/Adafruit-GFX-Library`Both available via Arduino library manager.
#### Usage
(require '[ferret-arduino-adafruit-pcd8544.core :as lcd])
;; Software SPI (slower updates, more flexible pin options):
;; pin 7 - Serial clock out (SCLK)
;; pin 6 - Serial data out (DIN)
;; pin 5 - Data/Command select (D/C)
;; pin 4 - LCD chip select (CS)
;; pin 3 - LCD reset (RST)
(def scr (lcd/device 7 6 5 4 3))(lcd/begin scr)
(lcd/contrast scr 50)
(lcd/clear scr)
(lcd/cursor scr 0 0)
(lcd/println scr "Hello World")
(lcd/display scr)(forever (sleep 100))