This sample displays an incrementing counter through the Grove LCD, with changing backlight.
To use this sample, the following hardware is required:
You will need to connect the Grove LCD via the Grove shield onto a board that supports Arduino shields.
On some boards you will need to use 2 pull-up resistors (10k Ohm) between the SCL/SDA lines and 3.3V.
The I2C lines on Quark SE Sensor Subsystem does not have internal pull-up, so external one is required.
Take note that even though SDA and SCL are connected to a 3.3V power source, the Grove LCD VDD line needs to be connected to the 5V power line, otherwise characters will not be displayed on the LCD (3.3V is enough to power just the backlight).
Building and Running¶
This sample should work on any board that has I2C enabled and has an Arduino shield interface. For example, it can be run on the Quark D2000 DevBoard as described below:
# On Linux/macOS cd $ZEPHYR_BASE/samples/grove/lcd mkdir build && cd build # On Windows cd %ZEPHYR_BASE%\samples\grove\lcd mkdir build & cd build cmake -GNinja -DBOARD=quark_d2000_crb .. ninja flash