{"_id":"adafruit-i2c-lcd","_rev":"25-51af58feb4c9ec5e00933a99536cbb7d","name":"adafruit-i2c-lcd","description":"Node Library for using adafruit i2c rgb lcd pi plate","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"adafruit-i2c-lcd","version":"0.0.1","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.coffee","dependencies":{"coffee-script":"","i2c":"0.1.4"},"repository":{"type":"git","url":"https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"_id":"adafruit-i2c-lcd@0.0.1","dist":{"shasum":"ca72f1728de6dace5dc3918532e43a4439401e68","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.0.1.tgz","integrity":"sha512-2Stx6ihewb+HXtO2Uepu4tQd5xgk3sWBqxu8b4ohoDBYrsb1PJ+dcaePEy3gdPwRMCOVoAhypFC+r+ozwU3/eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFb2QbMeR8byXWVV/eq2scST7+tO0rHSWxj2QCljzeRgIhAI1vIArOS9AJkjlDgHbwLhimzFGQk7hieKVkZ/5fWzZO"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"directories":{}},"0.0.2":{"name":"adafruit-i2c-lcd","version":"0.0.2","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c":"0.1.4"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","gitHead":"918d14cd505e08d5288ea41a0df121bf775a604a","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"_id":"adafruit-i2c-lcd@0.0.2","_shasum":"ba8b8dfac688c96aef2ece0567bd1f3b6d3fd7a3","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"dist":{"shasum":"ba8b8dfac688c96aef2ece0567bd1f3b6d3fd7a3","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.0.2.tgz","integrity":"sha512-Q3Wl9fSdyiQ8H8wC9FFQW7tUemBadYwMnC++z8IW7Gqvq1N3n5rAW8MOsb4ka0aAd1Be8H+Icw2gAbZ2hVZS7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqpCyd+DZc/CyuLxkztGtru3oaKJCuUOKFyFEeE7GhUAiAmTtzbMYbRftLA31HLSfantT7+CUx58jZ/KsHyj5BDOg=="}]},"directories":{}},"0.0.2-a":{"name":"adafruit-i2c-lcd","version":"0.0.2-a","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c":"0.1.4"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","gitHead":"918d14cd505e08d5288ea41a0df121bf775a604a","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"_id":"adafruit-i2c-lcd@0.0.2-a","_shasum":"f0743d9dd236bbdf0abcc7c34b3e8886a68bf618","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"dist":{"shasum":"f0743d9dd236bbdf0abcc7c34b3e8886a68bf618","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.0.2-a.tgz","integrity":"sha512-32BXGcWXBj7F4c+Eht5NhuAf2bBItVePz3A0glSLj7cPnUNuvAkH1Dr1h2wSay0YWPoZqERRXtYsE2I6gY8wFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdgBTwvJ617B4znbwNO9WcZp14wpqrW9RMv+dGYkH98gIgbY61/Y56X/6NQHI5ixYPbobHOVJJwkNYqWDKcOv/4Yc="}]},"directories":{}},"0.0.3":{"name":"adafruit-i2c-lcd","version":"0.0.3","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c":"0.1.4"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","gitHead":"b7798a630c3fc7b8faef64c03f39f7fceeb293c9","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"_id":"adafruit-i2c-lcd@0.0.3","_shasum":"51cc99e53694ce72fa0601a35255d2c537049a3d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"dist":{"shasum":"51cc99e53694ce72fa0601a35255d2c537049a3d","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.0.3.tgz","integrity":"sha512-/LGWZNWSkHeua5rgrb5+uiqnVzzRMOhFe0SbkoqcMTD5A5pwydb4/qzrGUYOIPTNtGIVO6BiB/GkeucO8REjnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYGDPd6NClbTC+Y/96elWTwY9cXyunn6io2VBjyxDzNAiEA5NVeyHTkxSGcaFlO+QQPQcWz2bTvPUDAVmY7V6w0MKM="}]},"directories":{}},"0.1.0":{"name":"adafruit-i2c-lcd","version":"0.1.0","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c":"0.2.1"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","gitHead":"38d6cf40d8596c00adb3b8eac3e08090708e3e0c","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"homepage":"https://github.com/fehmer/adafruit-i2c-lcd","_id":"adafruit-i2c-lcd@0.1.0","_shasum":"b32cc8a03b0cac9890b804b2afd85e73fec79771","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.1","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"dist":{"shasum":"b32cc8a03b0cac9890b804b2afd85e73fec79771","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.1.0.tgz","integrity":"sha512-/tj70+wyXy6b0dK3l4m3U4WNZRObvYmHyit6G/rYNmfENYg9lnxIuc1KboliveofvBxQTd+XmqeGJLfDtsRqTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVqi/eaE+m46Bj9oNg2hcX/se3X7sWrxebUAd5RRH8bwIhAIcRATFHaVteSJvrPOUhA2Wyt9a7/vFN+CRmSTIFFvN4"}]},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"directories":{}},"0.1.1":{"name":"adafruit-i2c-lcd","version":"0.1.1","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c":"0.2.1"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"git+https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD","gitHead":"ef3884207e3c83b5ac8dcde28224d368f3378223","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"homepage":"https://github.com/fehmer/adafruit-i2c-lcd#readme","_id":"adafruit-i2c-lcd@0.1.1","_shasum":"9508b16567e1e7269ff538f97dcd3e0aefe8ddc5","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"dist":{"shasum":"9508b16567e1e7269ff538f97dcd3e0aefe8ddc5","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-0.1.1.tgz","integrity":"sha512-UfNbId6pgG2QNOBVE5bDR2HMvx9c7TvJjL72DELnsFUgTIkI2bhmfdNsYUHrMAwEXYxsz0CcU0Kqa8FU2h1X5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEnE4lw8wE+quR1VtkGqB2NZrd0RNWi58F8+iyGScKOwAiBIjzh8oIT6Ig2ZvdXIR/LqPeMa9YF4uw5U4BZsAWf4ZA=="}]},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/adafruit-i2c-lcd-0.1.1.tgz_1454779953045_0.9100399035960436"},"directories":{}},"1.0.0":{"name":"adafruit-i2c-lcd","version":"1.0.0","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c-bus":"^1.0.2"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"git+https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD-2-Clause","gitHead":"10e97c631ac35c8efd0e1f7ed9426ae33e367409","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"homepage":"https://github.com/fehmer/adafruit-i2c-lcd#readme","_id":"adafruit-i2c-lcd@1.0.0","_shasum":"ef36d64336e57ef2dea08be28bfa899ca317a4cd","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"dist":{"shasum":"ef36d64336e57ef2dea08be28bfa899ca317a4cd","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-1.0.0.tgz","integrity":"sha512-3uqUVna5X5UMFoR9VLz7rBQc+5VlNJj9qX2VlAPrBrkwA8gzYIMUTcqQIpeacHYVxriFZFbu1rp9DW8gryhuGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDi0l14ovvBk8OTJGeDoUAMk561prgBRyE5uxIlI1o0AiEA/2l24C/olsUZDertobJ/xTax7VwdaftOGdFLk47WBgA="}]},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/adafruit-i2c-lcd-1.0.0.tgz_1454786799294_0.6997671793214977"},"directories":{}},"1.0.2":{"name":"adafruit-i2c-lcd","version":"1.0.2","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c-bus":"^1.0.2"},"devDependencies":{"coffee-script":""},"scripts":{"prepublish":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"git+https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD-2-Clause","gitHead":"9b39cf701ac7ac3b2feb3b7fea588e40c166542f","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"homepage":"https://github.com/fehmer/adafruit-i2c-lcd#readme","_id":"adafruit-i2c-lcd@1.0.2","_shasum":"505212a58b3d50f98067e3cb3b930f8bed9ffe83","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"dist":{"shasum":"505212a58b3d50f98067e3cb3b930f8bed9ffe83","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-1.0.2.tgz","integrity":"sha512-xzK6dKv7kLbxUcKoItlutCH8wXGj/V+xU9nDohu2H/IwaBXSoPMdEpb3aXcDl5Z67WwYxoVZFO68mBHKUPJCXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV72cxUTlmSZ2CjK9WIz62odvSkibKl1x9p6pJZ1aRmwIhAJ279eOyzyXZX7/a70QlKYtlvYEjZGdO66REuomVQP6x"}]},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/adafruit-i2c-lcd-1.0.2.tgz_1454862190610_0.7540023466572165"},"directories":{}},"2.0.0":{"name":"adafruit-i2c-lcd","version":"2.0.0","description":"Node Library for using adafruit i2c rgb lcd pi plate","main":"./lib/index.js","dependencies":{"i2c-bus":"^5.1.0"},"devDependencies":{"coffee-script":""},"scripts":{"prepare":"node_modules/coffee-script/bin/coffee -o lib -c src"},"repository":{"type":"git","url":"git+https://github.com/fehmer/adafruit-i2c-lcd.git"},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"author":{"name":"Christian Fehmer"},"license":"BSD-2-Clause","gitHead":"47e7cbb61dd752e2ef36c1dc56a9f5d50e447396","bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"homepage":"https://github.com/fehmer/adafruit-i2c-lcd#readme","_id":"adafruit-i2c-lcd@2.0.0","_nodeVersion":"12.1.0","_npmVersion":"6.13.0","dist":{"integrity":"sha512-L23HBVbNyr1yGXwO0RsT6modQgqOe98EDA4OR8oo74Rhwy5xaqPjSSBFvvBc7IX7hgjjBS12udSzguCehSzrxw==","shasum":"225c9856d8cb7a6f4a9d2867528bd13d066f69c0","tarball":"https://registry.npmjs.org/adafruit-i2c-lcd/-/adafruit-i2c-lcd-2.0.0.tgz","fileCount":9,"unpackedSize":27302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzFrUCRA9TVsSAnZWagAAALUP/27C+IeYOciqPkKZaqZp\n5S2bGtUzltsKcEPPr2Tgi5itlYUruIAmYDJqR7QGBpfhUe4WOGfr+A6p0KlV\n8omECN9Bd0GMtF6VaZN77LpHPrJGTEZk8plxhyzh540kWx2t96mVFC8a7udg\n7RTPX4nOvq0tik/d57eLmSnr8qS6+UlB5hCv5+WRnk9dxgxasoF4vNWzitPw\noqfNAl0HKrV7Lp//yEMYqTWsMgzSc4KXE58zH3kGR8vsZcNdse1qg4lPwOd6\nxEh4wLnhyxb/qhrS1jET0x/21hqqSB8opKw4trLfvuOufzN/PxpME/z0dv5a\ngezNbjEIG1zgJdbJCb0VrpyBkQBM8fygJRvKeF8CEztBZdhnGP1FZG6f5jHQ\n09yegftPUeWO9uQgSAiu40mKp1gSS9UWcdice69vBv2ouiC9P5I9zSjPu3+t\nWdvFzKMVLmQKGTPm41ToWrXUVqZq4XfRtjvj5bwFWfZFtCQXqG2wTq3QVHNw\nZAP9nN7FLYqyb5w8HQdSSUT8CbUMxVmXBEoiPY6s5U/NYZK4oevXEm+bgaS5\na5tlIeIRMShpDgy6YaUAEVnkIroFSLMtL9g0bV5LCmRP0akL5N81nRMXkSur\nuR9xpsyOLy7/+JnzbCN5OoqTW57WCchdgGaZfZ49YVWy3R/LRDWELKtDurzg\nFKNL\r\n=DYGj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZMwrERj2wmBsaxVsVBsyO6KNWe1Ej/uP4dg9OFGYkrgIgap5BPPKBnE8mxVyYdTDYEAQQkR38Zh0yqMOP/c1nD0Y="}]},"maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"_npmUser":{"name":"fehmer","email":"npm@fehmer.info"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adafruit-i2c-lcd_2.0.0_1573673684424_0.09143854893026626"},"_hasShrinkwrap":false}},"readme":"# Adafruit I2C LCD Plate\r\n\r\nNode.js implementation for the Adafruit RGB 16x2 LCD+Keypad Kit for Raspberry Pi\r\nhttp://www.adafruit.com/products/1110\r\n\r\n**Note:** This readme is for the current version 1.x.x/2.x.x. If you are using older versions please read the [version 0.0.x readme](https://github.com/fehmer/adafruit-i2c-lcd/tree/0.0.x) or [version 0.1.x readme](https://github.com/fehmer/adafruit-i2c-lcd/tree/0.1.x).\r\n\r\n**Note:** Since version 1.0.0 this module is based on [i2c-bus](https://www.npmjs.com/package/i2c-bus). For compatibility with your node.js version read the i2c-bus documentation. Older versions of this module were based on [i2c](https://www.npmjs.com/package/i2c). adafruit-i2c-lcd version 0.1.x only works with node.js 0.12.x and adafruit-i2c-lcd version 0.0.x only works with node.js 0.10.x.\r\n\r\n**Note:** Version 2.0.0 and greater drops support for node v4, v5, and v7 as well as npm < v4 (update npm by running the command ```npm i npm -g```)\r\n\r\n**Note:** This module is compatible with  Sainsmart 1602 I2C, see [Compatibility](#compatibility)\r\n\r\n## Usage\r\n\r\n1. read the [i2c-bus documentation](https://github.com/fivdi/i2c-bus/blob/master/doc/raspberry-pi-i2c.md) how to setup your raspberry pi.\r\n2. add dependency using ```npm install adafruit-i2c-lcd --save```\r\n3. Copy and run one of the examples from the examples directory. Maybe you have to run them as root.\r\n\r\n### simple example\r\n\r\n```javascript\r\nvar LCDPLATE, lcd;\r\nLCDPLATE = require('adafruit-i2c-lcd').plate;\r\nlcd = new LCDPLATE(1, 0x20);\r\n\r\nlcd.backlight(lcd.colors.RED);\r\nlcd.message('Hello World!');\r\n\r\nlcd.on('button_change', function(button) {\r\n  lcd.clear();\r\n  lcd.message('Button changed:\\n' + lcd.buttonName(button));\r\n});\r\n```\r\n\r\n\r\n## API\r\n\r\n  - [LCDPLATE(device:String,address:Number,[pollInterval:Number])](#lcdplatedevicestringaddressnumberpollintervalnumber)\r\n  - [LCDPLATE.clear()](#lcdplateclear)\r\n  - [LCDPLATE.close()](#lcdplateclose)\r\n  - [LCDPLATE.backlight(color:Number)](#lcdplatebacklightcolornumber)\r\n  - [LCDPLATE.message(text:String,[clear:boolean])](#lcdplatemessagetextstring-booleanclear)\r\n  - [LCDPLATE.createChar(index:Number, pattern:byte[])](#lcdplatecreatecharindexnumber-patternbyte)\r\n  - [LCDPLATE.buttonState():Number](#lcdplatebuttonstatenumber)\r\n  - [LCDPLATE.buttonName(val:Number):String](#lcdplatebuttonnamevalnumberstring)\r\n\r\n### LCDPLATE(device:String,address:Number,[pollInterval:Number])\r\n\r\nSetting up a new LCDPLATE.\r\n\r\n- device: Device name, e.g. '/dev/i2c-1'\r\n- address: Address of the i2c panel, e.g. 0x20\r\n- pollInterval: optional. Set the poll interval for the buttons to x ms. Use pollInterval=-1 to disable polling. (Buttons will not work)\r\n\r\n### LCDPLATE.clear()\r\n\r\nClear the LCD, remove all text.\r\n\r\n### LCDPLATE.close()\r\n\r\nClose the LCD plate. Use this to stop the polling.\r\n\r\n### LCDPLATE.backlight(color:Number)\r\n\r\nSet the backlight of the LCD to the given color. You can use predefined colors from the LCDPLATE class:\r\n\r\nLCDPLATE.colors = [OFF, RED, GREEN, BLUE, YELLOW, TEAL, VIOLET, WHITE, ON]\r\n\r\n\r\n### LCDPLATE.message(text:String, [boolean:clear])\r\n\r\nAdd the text on the LCD. Use \\n as line feed. Only the first two lines will be sent to the display.\r\nIf parameter clear is given and true only the text is shown, previous content on the lcd will be cleared.\r\n\r\n### LCDPLATE.createChar(index:Number, pattern:byte[])\r\n\r\nDefines custom characters. Index must be between 0 and 7. Pattern is the pattern of your character, must contain exactly 8 bytes.\r\nE.g. you can easyly design your custom character at http://www.quinapalus.com/hd44780udg.html to show your custom character use eg. lcd.message('\\x01').\r\n\r\nExample:\r\n```javascript\r\nlcd.createChar(1, [0,0,10,31,31,14,4,0]);\r\nlcd.createChar(2, [0,4,10,17,17,10,4,0]);\r\n\r\nlcd.clear();\r\nlcd.backlight(lcd.colors.RED);\r\nlcd.message('I\\x01 n\\x02de.js', true);\r\n```\r\n\r\n\r\n### LCDPLATE.buttonState():Number\r\n\r\nReturns the pressed buttons as a number. Use bitmasks to mask out the state of the desired button. See LCDPLATE.buttons for button values.\r\n\r\n### LCDPLATE.buttonName(val:Number):String\r\n\r\nReturns the name, e.g. 'SELECT' to a button number. See LCDPLATE.buttons for button values.\r\n\r\n## Events\r\n\r\n### button_change\r\n\r\nFires if a button is pressed or released.\r\n\r\nParameters:   \r\n\r\n* button: the button, See LCDPLATE.buttons for button values.\r\n\r\n### Example\r\n```javascript\r\nlcd.on('button_change', function(button) {\r\n  lcd.clear();\r\n  lcd.message('Button changed:\\n' + lcd.buttonName(button));\r\n});\r\n```\r\n\r\n### button_up\r\n\r\nFires if a button is released.\r\n\r\nParameters:   \r\n\r\n* button: the button, See LCDPLATE.buttons for button values.\r\n\r\n\r\n### button_down\r\n\r\nFires if a button is pressed.\r\n\r\nParameters:   \r\n\r\n* button: the button, See LCDPLATE.buttons for button values.\r\n\r\n## Compatibility\r\n\r\nThis library is compatible with the Sainsmart 1602 I2C (SKU: 20-011-221)\r\nwith some notable exceptions.  This clone has a blue backlight and an\r\nRGB LED on-board.\r\n\r\n* The [LCDPLATE.backlight()](#lcdplatebacklightcolornumber) function\r\nchanges the RGB LED rather than the backlight.\r\n* The backlight on the LCD is connected to GPA5, which is the sixth (6th)\r\nbit of port A.  It can be set on or off directly in your client code.\r\n\r\n```javascript\r\n    lcd.sendBytes(0, 0x1F); // Sainsmart 1602 I2C backlight on\r\n    lcd.sendBytes(0, 0x3F); // Sainsmart 1602 I2C backlight off\r\n```\r\n\r\n\r\n## Licence\r\n\r\nBased on the [Adafruit's Raspberry-Pi Python Code Library](https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git)\r\n\r\n>  Here is a growing collection of libraries and example python scripts\r\n>  for controlling a variety of Adafruit electronics with a Raspberry Pi\r\n\r\n>  In progress!\r\n>\r\n>  Adafruit invests time and resources providing this open source code,\r\n>  please support Adafruit and open-source hardware by purchasing\r\n>  products from Adafruit!\r\n>\r\n>  Written by Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries.\r\n>  BSD license, all text above must be included in any redistribution\r\n>\r\n>  To download, we suggest logging into your Pi with Internet accessibility and typing:\r\n>  git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git\r\n","maintainers":[{"name":"fehmer","email":"npm@fehmer.info"}],"time":{"modified":"2022-06-13T02:24:35.317Z","created":"2013-08-19T12:43:54.118Z","0.0.1":"2013-08-19T12:43:57.090Z","0.0.2":"2014-12-06T08:04:14.922Z","0.0.2-a":"2014-12-06T08:15:42.895Z","0.0.3":"2014-12-06T08:19:21.050Z","0.1.0":"2015-05-13T16:37:40.925Z","0.1.1":"2016-02-06T17:32:34.140Z","1.0.0":"2016-02-06T19:26:42.024Z","1.0.1":"2016-02-07T16:10:58.970Z","1.0.2":"2016-02-07T16:23:12.992Z","2.0.0":"2019-11-13T19:34:44.575Z"},"author":{"name":"Christian Fehmer"},"repository":{"type":"git","url":"git+https://github.com/fehmer/adafruit-i2c-lcd.git"},"users":{"kwan":true,"michelmelo":true,"swak":true,"vekonydoktor":true},"keywords":["raspberry","pi","adafruit","i2c","lcd","rgb","plate"],"bugs":{"url":"https://github.com/fehmer/adafruit-i2c-lcd/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md","homepage":"https://github.com/fehmer/adafruit-i2c-lcd#readme"}