e-Paper
e-Paper copied to clipboard
DEV_Module_Exit for USE_LGPIO_LIB is empty
The method DEV_Module_Exit() has many ifdef'd implementations , all do the same thing using different APIs. However the USE_LGPIO_LIB is simply commented out:
#elif USE_LGPIO_LIB
// DEV_Digital_Write(EPD_CS_PIN, 0);
// DEV_Digital_Write(EPD_PWR_PIN, 0);
// DEV_Digital_Write(EPD_DC_PIN, 0);
// DEV_Digital_Write(EPD_RST_PIN, 0);
// lgSpiClose(SPI_Handle);
// lgGpiochipClose(GPIO_Handle);
#elif USE_DEV_LIB
DEV_HARDWARE_SPI_end();
DEV_Digital_Write(EPD_CS_PIN, 0);
DEV_Digital_Write(EPD_PWR_PIN, 0);
DEV_Digital_Write(EPD_DC_PIN, 0);
DEV_Digital_Write(EPD_RST_PIN, 0);
GPIOD_Unexport(EPD_PWR_PIN);
GPIOD_Unexport(EPD_DC_PIN);
GPIOD_Unexport(EPD_RST_PIN);
GPIOD_Unexport(EPD_BUSY_PIN);
GPIOD_Unexport_GPIO();
#endif
I would expect it to similar functions the the USE_DEV_LIB version that follows. The manual has a dire warning in this area:
- Note that the screen cannot be powered on for a long time. When the screen is not refreshed, please set the screen to sleep mode or power off it. Otherwise, the screen will remain in a high voltage state for a long time, which will damage the e-Paper and cannot be repaired!