I'm using a framebuffer to display data on an SSD1306 display via NuttX.
During a low power mode I need to disable the screen to save power.
Actually it would be better to uninitialize the display before the power down.

I see that the OS has functions in the kernel to turn off or on the display for 
(un)initializing it.
I see a struct containing these functions in the LCD driver: 
https://github.com/apache/incubator-nuttx/blob/2e54df0f35b743df26f5737aa6a9d7c74f12aa85/drivers/lcd/ssd1306_base.c#L232

What would be the best way to access this setpower() kernel function for the 
display via the application space?
Normally that would be done inside of logic in board/xx/xx/src using the Power Management (PM) callback logic.  There is an example here: https://github.com/apache/incubator-nuttx/blob/master/boards/arm/stm32/stm3210e-eval/src/stm32_lcd.c#L1181

Reply via email to