
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
dot-matrix-lcd
Advanced tools
A JavaScript plugin to emulate Dot Matrix LCD display.
npm i -S dot-matrix-lcd
<!-- LCD Display Container -->
<div id="lcd-container" class="lcd-container"></div>
<!-- Plugin Script -->
<script src="./dist/index.js"></script>
This script exposes
LCD
class onwindow
object.
const LCD = require('dot-matrix-lcd');
var lcd = new LCD({
elem: document.getElementById("lcd-container"),
rows: 2, // number of character rows on the LCD screen
columns: 16, // number of character columns on the LCD screen
pixelSize: 4, // size of each pixel
pixelColor: "#000", // color of the pixel
});
// Write a character on LCD screen.
// charCode => decimal number or hexadecimal string ASCII code point
// blockIndex => index of the character block (default: 0)
lcd.writeCharacter( { charCode, blockIndex } );
// Write string (text) on LCD screen.
// string => text (default: "")
// offset => offset index from the start of the screen.
lcd.writeString({ string, offset });
// Clear a character at a given index on the LCD screen.
// blockIndex => Index of the character block (default: 0)
lcd.clearCharacter({ blockIndex });
// Toggle cursor blink at the given character block.
// blockIndex => index of the character block (default: 0)
// stop => stop cursor blink (default: false)
lcd.blinkCursor({ blockIndex, stop });
// Clear entire LCD screen.
lcd.clearScreen();
FAQs
A simple Dot Matrix LCD emulator for JavaScript.
We found that dot-matrix-lcd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.