Character LCD WebComponent
npm install polymer-char-lcdnpm install polymer-char-lcd --save
html
`
`html
`
Attributes
rom - jp (default) for Japanese standard font or eu for European standard font;
rows - number or rows; default: 2;
cols - number of columns; default: 16;
API
char(r, c, h) - set character h at row r, column c;
text(r, c, s) - write string s starting at row r, column c;
this function treats \n as new line and maps UNICODE characters to the internal character set;
font(n, data) - define the pixels of the n-th character; data is an array of bytes.
Testing with Polymer
Make sure the Polymer CLI is installed:
npm install -g polymer-cli
In the project directory:
run npm install
run polymer serve --open`