rpi-nokia5110
v1.0.0
Published
Nokia 5110 Library for Raspberry PI
Downloads
2
Readme
Rpi Nokia 5110
Nokia 5110 Library for Raspberry PI
Install
$ git clone https://github.com/zhaoo/rpi-nokia5110.git
$ cd rpi-nokia5110
$ npm i
Use
const Nokia = require('./index');
const nokia = new Nokia();
nokia.clear();
nokia.print('Hello, World!', 0);
nokia.print('Raspberry', 1, 2);
nokia.print('Nokia 5110', 2, 2);
setTimeout(nokia.printOnce('I am zhaoo'), 3000);
Config
const config = { // default config
PINS: { RST: 40, CE: 24, DC: 38, DIN: 19, CLK: 23 },
ADDRESS: { COL: 0x80, ROW: 0x40 }
}
const nokia = new Nokia();