Sensorian
1.0
C API Reference Guide Library
|
Functions | |
void | TFT_Initialize (void) |
This function intializes the display controller and prepares it for any subsequent operations. More... | |
void | TFT_WriteCommand (unsigned char command) |
This function writes a command byte to the display controller. More... | |
void | TFT_WriteData (unsigned char datab) |
This function is used to write data to the TFT controller. More... | |
void | TFT_WriteDataWord (int wdata) |
This function writes a 16 bit word on the display controller registers. More... | |
void | TFT_RamAdress (void) |
void | TFT_SetPixel (unsigned char x_start, unsigned char y_start, unsigned int color) |
This functions sets a specific pixel on the TFT display. More... | |
void | TFT_Sleep (void) |
Puts the display in a low power mode. More... | |
void | TFT_WakeUp (void) |
Wakes the display from sleep mode. More... | |
void | TFT_TurnOffDisplay (void) |
Blanks out the display. More... | |
void | TFT_TurnOnDisplay (void) |
This function turns on the display from idle mode. More... | |
void | TFT_SetOrientation (orientation_t mode) |
Sets the display text orientation. Mirrored modes are also supported on top of portrait and landscape modes. More... | |
void | TFT_InvertDisplay (void) |
Enables color inversion on the display. More... | |
void | TFT_InvertDisplayOff (void) |
Disables color inversion on the display. More... | |
void | TFT_Background (int color) |
This function paints the display background a specific color. More... | |
void | TFT_ShowPic (unsigned int picture[], unsigned char width, unsigned char height, unsigned int x, unsigned int y) |
This function paints an image with a specific heigh and width on the display at a specific coordinate. More... | |
void | TFT_DisplayImage (Image_t *image, unsigned char x, unsigned char y) |
This function displays an image of type Image_t on screen. More... | |
unsigned int | TFT_Color565 (unsigned char r, unsigned char g, unsigned char b) |
Pass 8-bit (each) R,G,B, get back 16-bit packed color. More... | |
void | TFT_ASCII (char x, char y, int color, int background, char letter, char size) |
Plot an ASCII char on the display. A specific font is used. More... | |
void | TFT_PrintString (char x, char y, int color, int background, char *message, char size) |
Orint a colored string at coordinates x,y with a specific font size. More... | |
void | TFT_PrintInteger (char x, char y, int color, int background, int integer, char size) |
Prints an integer at coordinates x,y with a specific color on a specific background. The integer font size is deterined bu var size. More... | |
Variables | |
const unsigned char | FontASCII8X16 [] |
const unsigned char | FontASCII8X16 [] |
const unsigned char | FontASCII8X16 [] |
const unsigned char | FontASCII8X16 [] |
TFT driver for ST7735 controller 1.8 inch display.
void TFT_ASCII | ( | char | x, |
char | y, | ||
int | color, | ||
int | background, | ||
char | letter, | ||
char | size | ||
) |
void TFT_Background | ( | int | color | ) |
This function paints the display background a specific color.
color | Color of the background |
unsigned int TFT_Color565 | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b | ||
) |
void TFT_DisplayImage | ( | Image_t * | image, |
unsigned char | x, | ||
unsigned char | y | ||
) |
void TFT_Initialize | ( | void | ) |
This function intializes the display controller and prepares it for any subsequent operations.
void TFT_InvertDisplay | ( | void | ) |
void TFT_InvertDisplayOff | ( | void | ) |
void TFT_PrintInteger | ( | char | x, |
char | y, | ||
int | color, | ||
int | background, | ||
int | integer, | ||
char | size | ||
) |
Prints an integer at coordinates x,y with a specific color on a specific background. The integer font size is deterined bu var size.
x | Initial X coordinates |
y | Initial Y coordinates |
color | Color of numbers above background. |
background | Color of text background. |
integer | Number to print as an int |
size | Size of font |
void TFT_PrintString | ( | char | x, |
char | y, | ||
int | color, | ||
int | background, | ||
char * | message, | ||
char | size | ||
) |
Orint a colored string at coordinates x,y with a specific font size.
x | Initial X coordinates |
y | Initial Y coordinates |
color | Color of numbers above background. |
background | Color of text background. |
message | Pointer to string array of chars |
size | Size of font |
void TFT_RamAdress | ( | void | ) |
void TFT_SetOrientation | ( | orientation_t | mode | ) |
void TFT_SetPixel | ( | unsigned char | x_start, |
unsigned char | y_start, | ||
unsigned int | color | ||
) |
void TFT_ShowPic | ( | unsigned int | picture[], |
unsigned char | width, | ||
unsigned char | height, | ||
unsigned int | x, | ||
unsigned int | y | ||
) |
This function paints an image with a specific heigh and width on the display at a specific coordinate.
picture[] | Integer array containg picture image in rgb565 format |
width | Image width |
height | Image height |
x | X coordinates of image |
y | Y coordinates of image |
void TFT_Sleep | ( | void | ) |
void TFT_TurnOffDisplay | ( | void | ) |
void TFT_TurnOnDisplay | ( | void | ) |
void TFT_WakeUp | ( | void | ) |
void TFT_WriteCommand | ( | unsigned char | command | ) |
void TFT_WriteData | ( | unsigned char | datab | ) |
void TFT_WriteDataWord | ( | int | wdata | ) |
const unsigned char FontASCII8X16[] |
const unsigned char FontASCII8X16[] |
const unsigned char FontASCII8X16[] |
const unsigned char FontASCII8X16[] |