Hanna
Sourcecode Batteriemanagementsystem |
Graphic service settings for the SDT028ATFT panel using the ILI9341 display controller. Mehr ...
gehe zum Quellcode dieser Datei
gfx_coord_t | gfx_height |
gfx_coord_t | gfx_width |
gfx_coord_t | gfx_min_x |
gfx_coord_t | gfx_min_y |
gfx_coord_t | gfx_max_x |
gfx_coord_t | gfx_max_y |
void | gfx_ili9341_set_orientation (uint8_t flags) |
Set display orientation. Mehr ... | |
gfx_color_t | gfx_ili9341_color (uint8_t r, uint8_t g, uint8_t b) |
Generate native color value from R/G/B values. Mehr ... | |
gfx_color_t | gfx_ili9341_get_pixel (gfx_coord_t x, gfx_coord_t y) |
Get the color of a pixel on the display. Mehr ... | |
void | gfx_ili9341_draw_pixel (gfx_coord_t x, gfx_coord_t y, gfx_color_t color) |
Draw a single pixel on the screen. Mehr ... | |
void | gfx_ili9341_draw_line_pixel (gfx_coord_t x, gfx_coord_t y, gfx_color_t color) |
Draw a single pixel on the screen. Mehr ... | |
void | gfx_ili9341_init (void) |
Initialize the ili9341 display controller. Mehr ... | |
Graphic service settings for the SDT028ATFT panel using the ILI9341 display controller.
This files includes the correct header files for the graphics service
Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.
Definiert in Datei gfx_ili9341.c.
gfx_color_t gfx_ili9341_color | ( | uint8_t | r, |
uint8_t | g, | ||
uint8_t | b | ||
) |
Generate native color value from R/G/B values.
Converts 8-bit R/G/B values to a color value native to the display.
The macro GFX_COLOR does the same, only allows the preprocessor to handle the calculations.
r | 8-bit red value. |
g | 8-bit green value. |
b | 8-bit blue value. |
Definiert in Zeile 86 der Datei gfx_ili9341.c.
void gfx_ili9341_draw_line_pixel | ( | gfx_coord_t | x, |
gfx_coord_t | y, | ||
gfx_color_t | color | ||
) |
Draw a single pixel on the screen.
This function draws a single pixel on screen only setting top limit which makes it more suitable for line drawing. If outside the clipping region, nothing is drawn.
x | X coordinate of the pixel to be drawn. |
y | Y coordinate of the pixel to be drawn. |
color | Color value of the pixel in display native format. |
Definiert in Zeile 123 der Datei gfx_ili9341.c.
void gfx_ili9341_draw_pixel | ( | gfx_coord_t | x, |
gfx_coord_t | y, | ||
gfx_color_t | color | ||
) |
Draw a single pixel on the screen.
Draw a single pixel on screen setting top and bottom limits. If outside the clipping region, nothing is drawn.
x | X coordinate of the pixel to be drawn. |
y | Y coordinate of the pixel to be drawn. |
color | Color value of the pixel in display native format. |
Definiert in Zeile 109 der Datei gfx_ili9341.c.
gfx_color_t gfx_ili9341_get_pixel | ( | gfx_coord_t | x, |
gfx_coord_t | y | ||
) |
Get the color of a pixel on the display.
x | X coordinate of the pixel to be sampled. |
y | Y coordinate of the pixel to be sampled. |
Definiert in Zeile 91 der Datei gfx_ili9341.c.
void gfx_ili9341_init | ( | void | ) |
Initialize the ili9341 display controller.
This function will be called when calling gfx_init. It will draw a black background to the display and enable the display backlight if available.
Definiert in Zeile 138 der Datei gfx_ili9341.c.
void gfx_ili9341_set_orientation | ( | uint8_t | flags | ) |
Set display orientation.
Set the display orientation
flags |
Definiert in Zeile 64 der Datei gfx_ili9341.c.
gfx_coord_t gfx_height |
Current height of screen.
Definiert in Zeile 60 der Datei gfx_ili9341.c.
gfx_coord_t gfx_max_x |
Minimum X of current clipping region.
Definiert in Zeile 62 der Datei gfx_ili9341.c.
gfx_coord_t gfx_max_y |
Maximum Y of current clipping region.
Definiert in Zeile 62 der Datei gfx_ili9341.c.
gfx_coord_t gfx_min_x |
Minimum X of current clipping region.
Definiert in Zeile 61 der Datei gfx_ili9341.c.
gfx_coord_t gfx_min_y |
Maximum Y of current clipping region.
Definiert in Zeile 61 der Datei gfx_ili9341.c.
gfx_coord_t gfx_width |
Current width of screen.
Definiert in Zeile 60 der Datei gfx_ili9341.c.