Extra - using a Raspberry Pi with an LCD as the client

We can easily use an additional Raspberry Pi for the client side, which will be responsible for turn the lamp on and off. For this example, we will use the tiny PiTFT 2.8 touchscreen to control the light. Note that other touchscreens, of course, will work just as well; the important thing is that the image contains a web browser:

$ source /path/to/poky/oe-init-build-env pitft28r_client_proj

Update bblayers.conf like this:

$ cat local/bblayers.conf
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
  /path/to/poky/meta \
  /path/to/poky/meta-yocto \
  /path/to/poky/meta-yocto-bsp \

Get Yocto for Raspberry Pi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.