1.4.3 • Published 6 years ago

matrix-led-font v1.4.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

1.4.2

6 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago