See LICENSE.md for license terms and conditions.
This sample application is distributed as part of the Intel® XDK. It can also be downloaded or cloned directly from its git repo on the public Intel XDK GitHub* site.
For help getting started developing applications with the Intel XDK, please start with the Intel XDK documentation.
See also, the mraa library documentation for details regarding supported boards and the mraa library API and the upm library documentation for information regarding the upm sensor and actuator library APIs.
This example drives a JHD1313m1 LCD as found in the *Grove Starter Kit. This connects to an i2c buss.Light sensor from the kit connects to A0 socket and LED connects to D2 socket.
The code for Display(LCD) be used in either of two ways. By default, it will use the upm module. This is much the simpler way to drive a upm supported device.
The purpose of this is to demonstrate that multiple sensors in this case LCD, LED and Light sensor can work together. UseUpm is the main function which contains all the intilatization of different module and variables. It compares the lux value as it reaches to threshold value it switches on/off between LED.For scrolling long strings i.e.(length > 16) there are two functions scroll and loop which are resposible. The Values in the array are taken from *seed grove wiki page.
Now at the end Comparing all the lux values to display appropriate message on LCD.
- main.js
- package.json
- README.md
- LICENSE.md
- <project-name>.xdk
This sample can run on other IoT Node.js development platforms, that include the appropriate sensor hardware, but may require changes to the I/O initialization and configuration code in order to work on those other platforms.