29 #define LCD_RGB(r, g, b) ((LCDColor) ( 0xFF000000ul | \ 30 (( ((uint32_t)(r)) & 0xFF) << 16) | \ 31 (( ((uint32_t)(g)) & 0xFF) << 8) | \ 32 ( ((uint32_t)(b)) & 0xFF) \ 57 LCDColor
LCD_MakeRGB(uint8_t r, uint8_t g, uint8_t b);
77 void LCD_DrawArc(int32_t x, int32_t y, int32_t radius,
float astartdeg,
float aenddeg, LCDColor
color);
133 #endif //LCD_H_INCLUDED void LCD_Pop(void)
Restore last saved LCD contents from the stack in SDRAM memory.
Definition: LCD.c:434
LCDColor LCD_ReadPixel(LCDPoint p)
Definition: LCD.c:158
uint32_t LCDColor
LCD color type.
Definition: LCD.h:26
uint8_t * LCD_Push(void)
Store LCD contents to the stack in SDRAM memory.
void LCD_Init(void)
Initialize hardware, turn on and fill display with black.
Definition: LCD.c:61
void LCD_WaitForRedraw(void)
Definition: LCD.c:100
uint16_t LCD_GetHeight(void)
Definition: LCD.c:40
void LCD_FillRect(LCDPoint p1, LCDPoint p2, LCDColor color)
Fill rectangle with given corner points with given color.
Definition: LCD.c:107
struct __attribute__((packed))
LCD point descriptor.
Definition: LCD.h:18
void LCD_InvertPixel(LCDPoint p)
Invert color of display pixel.
Definition: LCD.c:166
void LCD_BacklightOn(void)
Turn on LCD backlight.
Definition: LCD.c:45
void LCD_Circle(LCDPoint center, uint16_t r, LCDColor color)
Definition: LCD.c:223
void LCD_FillAll(LCDColor c)
Fill the entire display with given color.
Definition: LCD.c:139
void LCD_BacklightOff(void)
Turn off LCD backlight.
Definition: LCD.c:49
void LCD_VLine(LCDPoint p1, uint16_t lenght, LCDColor color)
Definition: LCD.c:201
void LCD_Line(LCDPoint p1, LCDPoint p2, LCDColor c)
Draw line between given points with given color.
Definition: LCD.c:186
uint32_t color
Definition: keyboard.c:29
void LCD_Rectangle(LCDPoint a, LCDPoint b, LCDColor c)
Draw lines forming a rectangle with given corner points with given color.
Definition: LCD.c:179
uint32_t LCD_IsOff(void)
Definition: LCD.c:95
#define LCD_RGB(r, g, b)
Convert 24-bit RGB color to 888 format with macro.
Definition: LCD.h:29
void LCD_SetPixel(LCDPoint p, LCDColor color)
Sets pixel at given point to given color.
Definition: LCD.c:172
void LCD_FillCircle(LCDPoint center, uint16_t r, LCDColor color)
Definition: LCD.c:230
LCDPoint LCD_MakePoint(int x, int y)
Make LCDPoint from x and y coordinates.
Definition: LCD.c:150
void LCD_TurnOn(void)
Turn on LCD and backlight.
Definition: LCD.c:87
void LCD_ShowActiveLayerOnly(void)
Definition: LCD.c:53
LCDColor LCD_MakeRGB(uint8_t r, uint8_t g, uint8_t b)
Definition: LCD.c:145
uint16_t LCD_GetWidth(void)
Definition: LCD.c:35
void LCD_InvertRect(LCDPoint p1, LCDPoint p2)
Definition: LCD.c:123
void LCD_DrawArc(int32_t x, int32_t y, int32_t radius, float astartdeg, float aenddeg, LCDColor color)
Draw arc using start and end in degrees (0 .. 360)
Definition: LCD.c:286
void LCD_HLine(LCDPoint p1, uint16_t lenght, LCDColor color)
Definition: LCD.c:212
void LCD_DrawBitmap(LCDPoint origin, const uint8_t *bmpData, uint32_t bmpDataSize)
Definition: LCD.c:391
LCDPoint
Definition: LCD.h:22
void LCD_TurnOff(void)
Definition: LCD.c:91