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.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "hwlib.h"
#include "lcd_graphic.h"
#include "LCD_Lib.h"
#include "font.h"
Include dependency graph for lcd_graphic.c:

Go to the source code of this file.

Functions

void DRAW_Pixel (LCD_CANVAS *pCanvas, int X, int Y, int Color)
 
void DRAW_Refresh (LCD_CANVAS *pCanvas)
 
void DRAW_Line (LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color)
 
void DRAW_Rect (LCD_CANVAS *pCanvas, int X1, int Y1, int X2, int Y2, int Color)
 
void DRAW_Circle (LCD_CANVAS *pCanvas, int x0, int y0, int Radius, int Color)
 
void DRAW_Clear (LCD_CANVAS *pCanvas, int nValue)
 
void DRAW_PrintChar (LCD_CANVAS *pCanvas, int X0, int Y0, char Text, int Color, FONT_TABLE *font_table)
 FONT API ///////////////////////////////////.
 
void DRAW_PrintString (LCD_CANVAS *pCanvas, int X0, int Y0, char *pText, int Color, FONT_TABLE *font_table)
 

Function Documentation

◆ DRAW_Circle()

void DRAW_Circle ( LCD_CANVAS * pCanvas,
int x0,
int y0,
int Radius,
int Color )

Definition at line 167 of file lcd_graphic.c.

Here is the call graph for this function:

◆ DRAW_Clear()

void DRAW_Clear ( LCD_CANVAS * pCanvas,
int nValue )

Definition at line 194 of file lcd_graphic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DRAW_Line()

void DRAW_Line ( LCD_CANVAS * pCanvas,
int X1,
int Y1,
int X2,
int Y2,
int Color )

Definition at line 72 of file lcd_graphic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DRAW_Pixel()

void DRAW_Pixel ( LCD_CANVAS * pCanvas,
int X,
int Y,
int Color )

Definition at line 46 of file lcd_graphic.c.

Here is the caller graph for this function:

◆ DRAW_PrintChar()

void DRAW_PrintChar ( LCD_CANVAS * pCanvas,
int X0,
int Y0,
char Text,
int Color,
FONT_TABLE * font_table )

FONT API ///////////////////////////////////.

Definition at line 234 of file lcd_graphic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DRAW_PrintString()

void DRAW_PrintString ( LCD_CANVAS * pCanvas,
int X0,
int Y0,
char * pText,
int Color,
FONT_TABLE * font_table )

Definition at line 258 of file lcd_graphic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DRAW_Rect()

void DRAW_Rect ( LCD_CANVAS * pCanvas,
int X1,
int Y1,
int X2,
int Y2,
int Color )

Definition at line 160 of file lcd_graphic.c.

Here is the call graph for this function:

◆ DRAW_Refresh()

void DRAW_Refresh ( LCD_CANVAS * pCanvas)

Definition at line 65 of file lcd_graphic.c.

Here is the call graph for this function:
Here is the caller graph for this function: