Hanna
Sourcecode Batteriemanagementsystem
gfx_ili9341.c-Dateireferenz

Graphic service settings for the SDT028ATFT panel using the ILI9341 display controller. Mehr ...

#include <gfx_ili9341.h>
#include "gfx.h"
#include "ili9341.h"
#include "ili9341_regs.h"
Include-Abhängigkeitsdiagramm für gfx_ili9341.c:

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 ...
 

Ausführliche Beschreibung

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.

Dokumentation der Funktionen

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.

Parameter
r8-bit red value.
g8-bit green value.
b8-bit blue value.
Rückgabe
Color value in display native format.

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.

Parameter
xX coordinate of the pixel to be drawn.
yY coordinate of the pixel to be drawn.
colorColor value of the pixel in display native format.

Definiert in Zeile 123 der Datei gfx_ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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.

Parameter
xX coordinate of the pixel to be drawn.
yY coordinate of the pixel to be drawn.
colorColor value of the pixel in display native format.

Definiert in Zeile 109 der Datei gfx_ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

gfx_color_t gfx_ili9341_get_pixel ( gfx_coord_t  x,
gfx_coord_t  y 
)

Get the color of a pixel on the display.

Parameter
xX coordinate of the pixel to be sampled.
yY coordinate of the pixel to be sampled.
Rückgabe
Color value of the pixel at (x, y) in display native format, or GFX_COLOR_INVALID if outside the clipping region.

Definiert in Zeile 91 der Datei gfx_ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

void gfx_ili9341_set_orientation ( uint8_t  flags)

Set display orientation.

Set the display orientation

Parameter
flags

Definiert in Zeile 64 der Datei gfx_ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Variablen-Dokumentation

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.