Hello,
I'm using the STemWin graphics libraries in an STM32F429 to drive a controller-less, 480x272 LCD (landscape orientation). The libraries work fine, if I keep the LCD in the landscape position and use GUIDRV_Lin_16_API as the driver. However, in the final product the LCD will be oriented in the portrait mode, 90 degrees clockwise from the default landscape position.
I am using STemWin version 5.22; I've listed the available drivers below and commented with the results that I get.
#define GUIDRV_LIN_16 &GUIDRV_Lin_16_API //Landscape. Default orientation.
#define GUIDRV_LIN_OY_16 &GUIDRV_Lin_OY_16_API //Landscape. Bottom is now the top. And mirrored.
#define GUIDRV_LIN_OX_16 &GUIDRV_Lin_OX_16_API //Landscape. Mirrored version of the default orientation.
#define GUIDRV_LIN_OXY_16 &GUIDRV_Lin_OXY_16_API //Landscape. Normal screen turned upside down.
#define GUIDRV_LIN_OS_16 &GUIDRV_Lin_OS_16_API //Portrait. 90 degrees clockwise from default. And mirrored.
#define GUIDRV_LIN_OSY_16 &GUIDRV_Lin_OSY_16_API //Portrait? Pushes image off the screen...to the right of GUIDRV_LIN_OSX_16.
#define GUIDRV_LIN_OSX_16 &GUIDRV_Lin_OSX_16_API //Portrait. 90 degrees counter-clockwise from default.
#define GUIDRV_LIN_OSXY_16 &GUIDRV_Lin_OSXY_16_API //Driver isn't available in the current library? v5.22
Another thing that I should mention is that the text works fine in every orientation (well, mirrored in some cases). However, the graphics functions, such as GUI_DrawVLine, only work correctly when I use GUIDRV_Lin_16_API. When using any other driver, the lines tend to get shifted around a bit.
Are there working drivers available so that I can use my display rotated clockwise 90 degrees? Or is this a case where I need to write some additional code?
Thank you!
I'm using the STemWin graphics libraries in an STM32F429 to drive a controller-less, 480x272 LCD (landscape orientation). The libraries work fine, if I keep the LCD in the landscape position and use GUIDRV_Lin_16_API as the driver. However, in the final product the LCD will be oriented in the portrait mode, 90 degrees clockwise from the default landscape position.
I am using STemWin version 5.22; I've listed the available drivers below and commented with the results that I get.
#define GUIDRV_LIN_16 &GUIDRV_Lin_16_API //Landscape. Default orientation.
#define GUIDRV_LIN_OY_16 &GUIDRV_Lin_OY_16_API //Landscape. Bottom is now the top. And mirrored.
#define GUIDRV_LIN_OX_16 &GUIDRV_Lin_OX_16_API //Landscape. Mirrored version of the default orientation.
#define GUIDRV_LIN_OXY_16 &GUIDRV_Lin_OXY_16_API //Landscape. Normal screen turned upside down.
#define GUIDRV_LIN_OS_16 &GUIDRV_Lin_OS_16_API //Portrait. 90 degrees clockwise from default. And mirrored.
#define GUIDRV_LIN_OSY_16 &GUIDRV_Lin_OSY_16_API //Portrait? Pushes image off the screen...to the right of GUIDRV_LIN_OSX_16.
#define GUIDRV_LIN_OSX_16 &GUIDRV_Lin_OSX_16_API //Portrait. 90 degrees counter-clockwise from default.
#define GUIDRV_LIN_OSXY_16 &GUIDRV_Lin_OSXY_16_API //Driver isn't available in the current library? v5.22
Another thing that I should mention is that the text works fine in every orientation (well, mirrored in some cases). However, the graphics functions, such as GUI_DrawVLine, only work correctly when I use GUIDRV_Lin_16_API. When using any other driver, the lines tend to get shifted around a bit.
Are there working drivers available so that I can use my display rotated clockwise 90 degrees? Or is this a case where I need to write some additional code?
Thank you!
The post was edited 1 time, last by bach.talk ().