Sensorian
1.0
C API Reference Guide Library
|
TFT library. More...
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "TFT.h"
#include "SPI.h"
#include "Font.h"
Go to the source code of this file.
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 [] |