Ich versuche, die Funktion für ein farbiges Rechteck zu schreiben:
1 | void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) |
2 | {
|
3 | BSP_LCD_SetTextColor(color); // keine Farbänderung |
4 | BSP_LCD_SetBackColor(color); // keine Farbänderung |
5 | BSP_LCD_SetColorKeying(0, color); // keine Farbänderung |
6 | BSP_LCD_FillRect(x, y, w, h); // Rechteck bleibt schwarz |
7 | };
|
Mist, es bleibt schwarz. Ich finde nirgends ein Beispiel