EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include "graphics2d.h"
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |
unsigned char * | G2ConvertFBToRITFormat (framebuffer fb) |
void | G2Draw (framebuffer fb) |
Variables | |
unsigned char | g_PackedDeviceBuffer [RIT_FB_WIDTH *RIT_FB_HEIGHT] = {0} |
The One Buffer To Rule Them All (TM) More... | |
#define NDEBUG |
Definition at line 6 of file graphics2d.c.
unsigned char* G2ConvertFBToRITFormat | ( | framebuffer | ) |
Unpack fb into in the format understood by RIT functions.
fb | Framebuffer to convert into a char* |
Definition at line 23 of file graphics2d.c.
References g_PackedDeviceBuffer, OLED_HEIGHT, OLED_WIDTH, and RIT_FB_WIDTH.
Referenced by demonstrateClock(), demonstrateDrawShapes(), demonstrateDrawString(), G2Draw(), and main().
void G2Draw | ( | framebuffer | ) |
Draw (unpacked) fb on the OLED.
fb | Framebuffer type (char**) |
Definition at line 49 of file graphics2d.c.
References G2ConvertFBToRITFormat(), g_PackedDeviceBuffer, OLED_HEIGHT, and OLED_WIDTH.
g_PackedDeviceBuffer = {0} |
The One Buffer To Rule Them All (TM)
This buffer is what we will use to write to the display. It is created here so that it can be easily passed around to those who need it and it doesn't need to keep being malloc'd all the time.
Definition at line 21 of file graphics2d.c.
Referenced by G2ConvertFBToRITFormat(), and G2Draw().