Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV_Module_Exit for USE_LGPIO_LIB is empty #348

Open
graemev opened this issue Jul 2, 2024 · 0 comments
Open

DEV_Module_Exit for USE_LGPIO_LIB is empty #348

graemev opened this issue Jul 2, 2024 · 0 comments

Comments

@graemev
Copy link

graemev commented Jul 2, 2024

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:

  1. 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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant