[riot-notifications] [RIOT-OS/RIOT] black/white e-Paper/e-Ink display driver (#12509)

Jean Pierre Dudey notifications at github.com
Sun Nov 1 19:51:56 CET 2020


@jeandudey commented on this pull request.



> +
+void epd_bw_spi_deactivate(epd_bw_spi_t *dev)
+{
+    uint8_t data[] = { 0x03 }; /* Disable CP, Disable Clock Signal */
+
+    epd_bw_spi_write_cmd(&dev->params, EPD_BW_SPI_CMD_DISPLAY_UPDATE_CONTROL_2,
+                         data, sizeof data);
+    epd_bw_spi_write_cmd(&dev->params, EPD_BW_SPI_CMD_MASTER_ACTIVATION, NULL,
+                         0);
+    epd_bw_spi_wait(&dev->params, EPD_BW_SPI_WAIT_ACTIVATION);
+}
+
+void epd_bw_spi_init_full(epd_bw_spi_t *dev)
+{
+    epd_bw_spi_display_init(dev);
+    epd_bw_spi_set_area(dev, 0, 200, 0, 200);

Shouldn't it be `dev->size_`? :eyes:

Also should this be called before setting the look-up table? In various drivers for Waveshare e-Paper displays they seem to do it later. The one I'm using to test is a [1.54 in e-Ink](https://www.waveshare.com/wiki/1.54inch_e-Paper_Module) with source code [here](https://github.com/waveshare/e-Paper/) (I haven't made it work with this driver, yet).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12509#pullrequestreview-521248055
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201101/de3e83e3/attachment.htm>


More information about the notifications mailing list