This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf_gfx_rotation_set

Hi,

I try to rotate an image (180) with nrf_gfx_rotation_set(p_lcd, NRF_LCD_ROTATE_180). This only works once, but after, I want to return to the original position by re-calling the same function with the same parameter but nothing change, the image is in the same position and I don't understand why. I tried to change the parameter by NRF_LCD_ROTATE_0, but it doesn't work. 

My driver is st7735, PCA is 10040, I work with sdk15.3 and my IDE is segger embedded.

If anybody has another way to rotate the image or knows why this function works once, I'd be happy to!

Thanks, 

Lydie

Parents
  • Hello,

    Can you check what your p_lcd->rotation variable is after you have called nrf_gfx_rotation_set(p_lcd, NRF_LCD_ROTATE_180) and nrf_gfx_rotation_set(_p_lcd, NRF_LCD_ROTATE_0)? So after you rotated 180 degrees, and then rotated back to 0?

    What SDK version do you use?

    Does it behave the same if you try the unmodified gfx example from SDK\examples\peripheral\gfx?

Reply
  • Hello,

    Can you check what your p_lcd->rotation variable is after you have called nrf_gfx_rotation_set(p_lcd, NRF_LCD_ROTATE_180) and nrf_gfx_rotation_set(_p_lcd, NRF_LCD_ROTATE_0)? So after you rotated 180 degrees, and then rotated back to 0?

    What SDK version do you use?

    Does it behave the same if you try the unmodified gfx example from SDK\examples\peripheral\gfx?

Children
Related