Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
16x2-lcd-menu
Library to quickly set up config menus on a 16x2 lcd
Library to abstract Adafruit 16x2 Character LCD menus, favors configuration over code for creating menus and screen navigation.
{
id: String, // -- identifier
name: String, // -- Name of template
enabled: Bool,
actions: {
up: func || string || null || undefined, // Action to perform on button up, function, or a string (string name of menu)
down: func || string || null || undefined, // if null, go up or down a line if template.length > 2
left: func || string || undefined, // undefined does nothing
right: func || string || undefined,
select: func || string || undefined
},
template: [String], // array of template string, line by line, since this is an x2 display we join 0 and 1 by \n
data: func // function to retrieve data
}
const LCDMENU = require('16x2-lcd-menu');
const lcdMenu = new LCDMENU(60, true); // timeout backlight after 60 seconds, debug on
lcdMenu.addMenu({
id: 'testMenu',
name: 'Test Menu',
enabled: true,
actions: {
right: 'testMenu2',
},
template: [
'This is a',
'Test Menu',
'Welcome',
'To the Demo',
],
});
lcdMenu.addMenu({
id: 'testMenu2',
name: 'Test Menu',
enabled: true,
template: [
'Test Menu 2'
],
actions: {
left: 'testMenu',
},
});
lcdMenu.init();
process.on('exit', lcdMenu.close); // Cleanup
Raw access to instantiated lcd plate library
Adds a new menu
Removes menu specified by id
Enables the specified menu
Disables the specified menu
Turns the backlight on or off based on state (truthy)
Initializes the display
Renders provided or active menu, or 0 indexed menu if none provided
Clears the timeout so the screen backlight stays on.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
adafruit-i2c-lcdEnvironment{
"local_name": "adafruit-i2c-lcd",
"alias": false,
"peer_metadata": null
} | ^1.0.2 | runtime |
Source distribution
{
"integrity": "sha512-uqNiRDVz14GawE9+kvKScsUkGxfoVWXi/cgLYV/xoNnLRsFbgrXV0lZL1PUztBtrbFkF8AHxxTZ2NVThmoQedA==",
"shasum": "41008c2ed39eca68f0706e65801cdb7d54b5bcb6",
"tarball": "https://registry.npmjs.org/16x2-lcd-menu/-/16x2-lcd-menu-0.1.0.tgz",
"fileCount": 6,
"unpackedSize": 14388,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcK8TVCRA9TVsSAnZWagAAyVQP/R705oBPjSpVFCyeBZhe\nddh/ANRNkK0SuvQ7JYPmgxr6Q8EkrA0zDIhoFRxh3A14GVF4i7g5YEye0TSO\nBUV/GEXNnj2Vk5+zN3t6OJHDxQ0MdmiRpXdBkICF80jpvC/1XS8emYviSAr4\nq4IDSnHSnaSyDws8qM64g4lk7zMWpAlOihA3DChYlA39f4DDvBWm96xQAPov\nxv0GxxmSocX+RCApIsqvGhg1D37+1Vp3TBWY4OyMv4MIoXzBrvzsDB4tJHtv\n2REeFSJ1y8lCVI0Yh9ue2uFA/pfEEp7iPSqLLCKPljuvIiBs3EHlmmV7TEeL\nV90uhQOaMUCfvECspHuGCyVnVVcTPgqL9+LA104PRi537K3Kot4Hb4plxEG/\nQHybzpS4NA7ZNhdRmGDfDODOQN4Hk7UL0O9hHsIOyC2w9Tg7CcLzzX2s54Og\nSpShCS2WaAqAbqP0wh7sz2z5lC1tfEivODPonpGPMG0cHvWDRP2vdUeRaXmm\n0tQ14FRruSil4z/0AgXvPG3XAARaYMmCNVibKZH9iAdN8XplajRtxbdhpyvO\nGRVSSclmCXk6wDaBgbyOgSOlXX0ChlviBQfqbepBsJ8JHv98jthUNkrYmv3H\nJQ7XkntM7J/uKdj2U5y0J670psqJPAbf0dzKu46rtc0Ewt3yazhFIyI/uTne\nHmXE\r\n=2zBc\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQCnsIlDSwLOeQgfpF8tQbqf4oO3zk+LJsGusk3Tp365sAIhALfaH/So7hBBabX5D0KU59edyGrpLWpGhOJLunp9TcoR"
}
]
}Observed since 20 Oct, 18:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:8768e379d77f8efdc82d0b23dae59b1fc44f41db64af05ab98aee4cc301e4aa6