PandA-2024.02
Macros | Functions
vgatest.c File Reference
#include "leds_ctrl.h"
#include "sw_ctrl.h"
#include "btn_ctrl.h"
#include "plot.h"
#include "delay.h"
Include dependency graph for vgatest.c:

Go to the source code of this file.

Macros

#define sgn(x)   ((x<0)?-1:((x>0)?1:0))
 
#define RESOLUTION_X   640
 
#define RESOLUTION_Y   480
 

Functions

void line (int x1, int y1, int x2, int y2, unsigned int color)
 
void Rect (int left, int top, int right, int bottom, unsigned int color)
 
void RectFill (int left, int top, int right, int bottom, unsigned int color)
 
void Circle (int x0, int y0, int radius, unsigned int color)
 
void CircleFill (int x0, int y0, int radius, unsigned int color)
 
void plot_test ()
 
void main ()
 

Macro Definition Documentation

◆ RESOLUTION_X

#define RESOLUTION_X   640

Definition at line 8 of file vgatest.c.

Referenced by plot_test().

◆ RESOLUTION_Y

#define RESOLUTION_Y   480

Definition at line 9 of file vgatest.c.

Referenced by plot_test().

◆ sgn

#define sgn (   x)    ((x<0)?-1:((x>0)?1:0))

Definition at line 7 of file vgatest.c.

Referenced by line().

Function Documentation

◆ Circle()

void Circle ( int  x0,
int  y0,
int  radius,
unsigned int  color 
)

Definition at line 75 of file vgatest.c.

References plot(), and x.

Here is the call graph for this function:

◆ CircleFill()

void CircleFill ( int  x0,
int  y0,
int  radius,
unsigned int  color 
)

Definition at line 101 of file vgatest.c.

References line(), and x.

Here is the call graph for this function:

◆ line()

void line ( int  x1,
int  y1,
int  x2,
int  y2,
unsigned int  color 
)

Definition at line 11 of file vgatest.c.

References abs, plot(), sgn, and x.

Here is the call graph for this function:

◆ main()

void main ( void  )

Definition at line 159 of file vgatest.c.

References plot_test().

Here is the call graph for this function:

◆ plot_test()

void plot_test ( )

Definition at line 124 of file vgatest.c.

References btn_ctrl(), BUTTON_DOWN, BUTTON_UP, Circle(), delay(), k, leds_ctrl(), RESOLUTION_X, RESOLUTION_Y, sw_ctrl(), and x.

Here is the call graph for this function:

◆ Rect()

void Rect ( int  left,
int  top,
int  right,
int  bottom,
unsigned int  color 
)

Definition at line 57 of file vgatest.c.

References line().

Here is the call graph for this function:

◆ RectFill()

void RectFill ( int  left,
int  top,
int  right,
int  bottom,
unsigned int  color 
)

Definition at line 64 of file vgatest.c.

References line().

Here is the call graph for this function:

Generated on Mon Feb 12 2024 13:03:12 for PandA-2024.02 by doxygen 1.8.13