Phoenard
Functions
PHNDisplay8Bit Namespace Reference

8-bit display (drawing) logic for size and speed optimization freaks More...

Functions

void writePixel (uint8_t color)
 Writes out a single 8-bit color pixel.
 
void writePixels (uint8_t color, uint32_t length)
 Writes out many 8-bit color pixels in bulk, length is the amount of pixels to write out.
 
void writePixelLines (uint8_t color, uint8_t lines)
 Writes out many 8-bit color pixels in bulk, specifying how many lines to fill.
 
void drawLine (uint16_t x, uint16_t y, uint32_t length, uint8_t direction, uint8_t color)
 Drawing a line with 8-bit color.
 
void drawRect (uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t color)
 Drawing a rectangle with 8-bit color.
 
void fillRect (uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t color)
 Filling rectangle with 8-bit color.
 
void fill (uint8_t color)
 Fills the entire screen with 8-bit color.
 
void colorTest ()
 Fills the screen with all possible 8-bit colors (256 of them)
 
void writeString (uint16_t x, uint16_t y, uint8_t scale, const char *text, uint8_t color0, uint8_t color1)
 Draws a String to the screen using the standard font.
 
void writeChar (uint16_t x, uint16_t y, uint8_t scale, char c, uint8_t color0, uint8_t color1)
 Draws a Character to the screen using the standard font.
 
void writeFont_1bit (uint16_t x, uint16_t y, uint8_t scale, const uint8_t *data, uint8_t color0, uint8_t color1)
 Draws a 5x7 1-bit font character, the font data must be stored in FLASH.
 
void writeImage_1bit (uint16_t x, uint16_t y, uint8_t width, uint8_t height, uint8_t scale, const uint8_t *data, uint8_t direction, uint8_t color0, uint8_t color1)
 Drawing 1-bit images stored in RAM (not FLASH!)
 

Detailed Description

8-bit display (drawing) logic for size and speed optimization freaks