Copyright 2017 Moddable Tech, Inc.
Revised: December 28, 2017
The LS013B4DN04 Sharp memory display controller drives 1-bit per pixel (black and white) displays. Displays are up to 400 pixels wide and 240 pixels high.
To add the LS013B4DN04 driver to a project, include its manifest:
/* other includes here */
If using Commodetto or Piu, set the
screen property of the
config object in the manifest to
ls013b4dn04 to make LS013B4DN04 the default display driver. Since there is no touch input, set the touch driver name to an empty string to disable it.
The LS013B4DN04 driver requires 8-bit gray pixels as input. When building with
mcconfig, set the pixel format to
gray256 on the command line:
mcconfig -m -p esp -f gray256
defines object, declare the pixel
defines object must contain the
spi_port, along with the
CS pin number. If the
cs_port property is not provided, it defaults to NULL.
/* other properties here */
hz property, when present, specifies the SPI bus speed. The default value is 10,000,000 Hz which is near the maximum SPI speed supported by the LS013B4DN04.
The LS013B4DN04 driver always updates full scan lines, but can update arbitrary scan lines. This allows for partial updates of full rows. Piu automatically takes care of this, so script using Piu do not need to take this into account. Scripts using Poco need to ensure when calling
poco.begin() that the
x parameter is zero and the
width parameter is equal to