Phoenard
Functions
PHNDisplay16Bit Namespace Reference

16-bit display (drawing) logic for full color More...

Functions

void writePixel (uint16_t color)
 Writes out a single 16-bit color pixel.
 
uint16_t readPixel (uint16_t x, uint16_t y)
 Reads a single 16-bit color pixel at [x, y].
 
void writePixels (uint16_t color, uint32_t length)
 Writes out many 16-bit color pixels in bulk, length is the amount of pixels to write out.
 
void writePixels (uint16_t *colorData, uint16_t length)
 Writes out many 16-bit color pixels in bulk, using an array of pixel data.
 
void drawLine (uint16_t x, uint16_t y, uint32_t length, uint8_t direction, uint16_t color)
 Drawing a line with 16-bit color.
 
void fill (uint16_t color)
 Fills the entire screen with 16-bit color.
 
void colorTest ()
 Fills the screen with all possible 16-bit colors (65536 of them)
 
void writeString (uint16_t x, uint16_t y, uint8_t scale, const char *text, uint16_t color0, uint16_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, uint16_t color0, uint16_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, uint16_t color0, uint16_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, uint16_t color0, uint16_t color1)
 Drawing 1-bit images stored in RAM (not FLASH!)
 

Detailed Description

16-bit display (drawing) logic for full color