rpi-nokia5110

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i rpi-nokia5110

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

9.59 kB

Total Files

6

Last publish

Collaborators

  • zhaoo