UNPKG

jvsdisplayotron

Version:

A lightweight but powerful module, that allows you to easily control a Display-O-Tron 3000 / HAT from Node.js

15 lines (10 loc) 418 B
// Load dependencies. var JVSDisplayOTron = require('../../index.js'); // Initialize the Display-O-Tron. var dot3k = new JVSDisplayOTron.DOT3k(); // Set the display contrast to a better-readable value. dot3k.lcd.setContrast(45); // Write 'Hello World' on the display. dot3k.lcd.write('Hello World'); // To reduce resource usage, kill the JVSDisplayOTron process if no subsequent calls are made. dot3k.kill(false);