Hi, guys!
I've ported the "MSP432P401R + Education Booster pack" examples to "MSP430FR6989 + Education Booster pack". Now I want to make an example with a bitmap image. I have successfully displayed text on the screen but when I try to display a pixmap from the tool "Imageformer" the picture gets chopped from the right side. (image attached)
I tried to expand the "clipRegion" but it didn't work. So basically I don't know whether there's something wrong with my GRLIB port or am I just using the GRLIB in the wrong way...
Any help is appreciated!
Regards,
L. B.
#include <stdio.h> #include <driverlib.h> #include "grlib.h" #include "Crystalfontz128x128_ST7735.h" #include "tu_logo.h" /* Graphic library context */ Graphics_Context g_sContext; Graphics_Image tu_logo; int main(void) { init(); /* Initializes display */ Crystalfontz128x128_Init(); /* Set default screen orientation */ Crystalfontz128x128_SetOrientation(LCD_ORIENTATION_UP); /* Initializes graphics context */ Graphics_initContext(&g_sContext, &g_sCrystalfontz128x128); Graphics_setForegroundColor(&g_sContext, GRAPHICS_COLOR_BLUE); Graphics_setBackgroundColor(&g_sContext, GRAPHICS_COLOR_WHITE); GrContextFontSet(&g_sContext, &g_sFontFixed6x8); Graphics_clearDisplay(&g_sContext); Graphics_drawStringCentered(&g_sContext, (int8_t *)"Embedded Systems", AUTO_STRING_LENGTH, 64, 10, OPAQUE_TEXT); // g_sContext.clipRegion.xMin = 0; // g_sContext.clipRegion.xMax = 128; // g_sContext.clipRegion.yMin = 0; // g_sContext.clipRegion.yMax = 128; Graphics_drawImage(&g_sContext, &tu_logo8BPP_UNCOMP, 14, 20); while(1){ } }