SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
lcd_graphic.h
Go to the documentation of this file.
1#ifndef _INC_LCD_GRAPHIC_H_
2#define _INC_LCD_GRAPHIC_H_
3
4#define SUPPORT_LCD_FONT
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10
11typedef struct{
12 int Width;
13 int Height;
16 uint8_t *pFrame;
18
19#define LCD_WHITE 0x00
20#define LCD_BLACK 0xFF
21
22void DRAW_Clear(LCD_CANVAS *pCanvas, int Color);
23void DRAW_Line(LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color);
24void DRAW_Pixel(LCD_CANVAS *pCanvas, int X, int Y, int Color);
25void DRAW_Rect(LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color);
26void DRAW_Circle(LCD_CANVAS *pCanvas, int x0, int y0, int Radius, int Color);
27void DRAW_Refresh(LCD_CANVAS *pCanvas);
28
29
30#ifdef SUPPORT_LCD_FONT
31
32#include "font.h"
33void DRAW_PrintChar(LCD_CANVAS *pCanvas, int X0, int Y0, char Text, int Color, FONT_TABLE *font_table);
34void DRAW_PrintString(LCD_CANVAS *pCanvas, int X0, int Y0, char *pText, int Color, FONT_TABLE *font_table);
35
36#endif //SUPPORT_LCD_FONT
37
38
39#ifdef __cplusplus
40}
41#endif
42
43
44#endif
45
void DRAW_Circle(LCD_CANVAS *pCanvas, int x0, int y0, int Radius, int Color)
void DRAW_PrintString(LCD_CANVAS *pCanvas, int X0, int Y0, char *pText, int Color, FONT_TABLE *font_table)
void DRAW_Rect(LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color)
void DRAW_PrintChar(LCD_CANVAS *pCanvas, int X0, int Y0, char Text, int Color, FONT_TABLE *font_table)
FONT API ///////////////////////////////////.
void DRAW_Pixel(LCD_CANVAS *pCanvas, int X, int Y, int Color)
Definition lcd_graphic.c:46
void DRAW_Line(LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color)
Definition lcd_graphic.c:72
void DRAW_Refresh(LCD_CANVAS *pCanvas)
Definition lcd_graphic.c:65
void DRAW_Clear(LCD_CANVAS *pCanvas, int Color)
uint8_t * pFrame
Definition lcd_graphic.h:16
int BitPerPixel
Definition lcd_graphic.h:14