1.4.3 • Published 5 years ago

matrix-led-font v1.4.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

matrix-led-font Build Status

A font for using MAX7219 LED Matrix with Arduino, developed for use by a node server LedMatrixMessenger that delivers messages to WebToLEDMatrix an Aurdino LED display app.

Install / Setup

install

npm install matrix-led-font

Documentation

Please feel free to generate full esDocs (using a bash script due to esdocs having a vulnerability)...

npm run docs -> then open ./docs/index.html

getBufferFromGlyph(key: string): Uint8Array

Get a matrix to display one glyph

import {getBufferFromGlyph} from 'matrix-led-font'

let heartMatrix = getBufferFromGlyph('♡');

Returns a Buffer/Uint8Array that can be used to turn leds on/off on a matrix display.

[
    00011110,
    00100001,
    01000001,
    10000110,
    10000110,
    01000001,
    00100001,
    00011110
]

(look at that image with up being ---> )

getBufferFromLine(line: string): Uint8Array

import {getBufferFromLine} from 'matrix-led-font'
let twoHeartMatrix = import('♡');

Returns a Buffer/Uint8Array

[
    00011110,
    00100001,
    01000001,
    10000110,
    10000110,
    01000001,
    00100001,
    00011110,
    00011110,
    00100001,
    01000001,
    10000110,
    10000110,
    01000001,
    00100001,
    00011110
]

run tests

npm run test

Or if you are doing any dev work feel free to ...

npm run watch

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago