Hanna
Sourcecode Batteriemanagementsystem
Makrodefinitionen | Typdefinitionen
ili9341.h-Dateireferenz

ILI9341 Display Controller Component Driver aus dem ASF 3.26.0. Mehr ...

#include <board_init.h>
#include "port_driver.h"
#include <compiler.h>
Include-Abhängigkeitsdiagramm für ili9341.h:
Dieser Graph zeigt, welche Datei direkt oder indirekt diese Datei enthält:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define CONF_ILI9341_CLOCK_SPEED   8000000UL
 Select the correct hardware interface. Mehr ...
 
#define CONF_ILI9341_CS_PIN   QVGA_CS
 Define what MCU pin the ILI9341 chip select pin is connected to.
 
#define CONF_ILI9341_DC_PIN   QVGA_DC
 Define what MCU pin the ILI9341 DC pin is connected to.
 
#define CONF_ILI9341_RESET_PIN   QVGA_LCD_RESET
 Define what MCU pin the ILI9341 back light pin is connected to. Mehr ...
 
#define ILI9341_COLOR(r, g, b)   Swap16((((uint16_t)b) >> 3) | ((((uint16_t)g) << 3) & 0x07E0) | ((((uint16_t)r) << 8) & 0xf800))
 
#define ILI9341_DEFAULT_HEIGHT   240
 
#define ILI9341_DEFAULT_WIDTH   320
 
#define ILI9341_SWITCH_XY_HEIGHT   320
 
#define ILI9341_SWITCH_XY_WIDTH   240
 
Display orientation flags
#define ILI9341_FLIP_X   1
 
#define ILI9341_FLIP_Y   2
 
#define ILI9341_SWITCH_XY   4
 

Typdefinitionen

typedef uint16_t ili9341_color_t
 
typedef int16_t ili9341_coord_t
 

Funktionen

Controller primitive graphical functions
ili9341_color_t ili9341_read_gram (void)
 Read a single color from the graphical memory. Mehr ...
 
void ili9341_write_gram (ili9341_color_t color)
 Write the graphical memory with a single color pixel. Mehr ...
 
void ili9341_set_top_left_limit (ili9341_coord_t x, ili9341_coord_t y)
 Set the display top left drawing limit. Mehr ...
 
void ili9341_set_bottom_right_limit (ili9341_coord_t x, ili9341_coord_t y)
 Set the display bottom right drawing limit. Mehr ...
 
void ili9341_set_limits (ili9341_coord_t start_x, ili9341_coord_t start_y, ili9341_coord_t end_x, ili9341_coord_t end_y)
 Set the full display drawing limits. Mehr ...
 
void ili9341_set_orientation (uint8_t flags)
 Sets the orientation of the display data. Mehr ...
 
void ili9341_copy_pixels_to_screen (const ili9341_color_t *pixels, uint32_t count)
 Copy pixels from SRAM to the screen. Mehr ...
 
void ili9341_copy_pixels_from_screen (ili9341_color_t *pixels, uint32_t count)
 Copy pixels from the screen to a pixel buffer. Mehr ...
 
void ili9341_duplicate_pixel (const ili9341_color_t color, uint32_t count)
 Set a given number of pixels to the same color. Mehr ...
 
Controller and display initialization and management
void ili9341_init (void)
 Initialise the controller. Mehr ...
 

Ausführliche Beschreibung

ILI9341 Display Controller Component Driver aus dem ASF 3.26.0.

Autor
Copyright (c) 2012-2015 Atmel Corporation. All rights reserved.

Definiert in Datei ili9341.h.

Makro-Dokumentation

#define CONF_ILI9341_CLOCK_SPEED   8000000UL

Select the correct hardware interface.

Currently supported interfaces are the SPI interface and the USART Master SPI interface. Select SPI clock speed

This selects the clock speed for the SPI clock used to communicate with the display controller. Higher clock speeds allow for higher frame rates.

Zu beachten
That the clock speed may be limited by the speed of the microcontroller a normal limitation would be CPUclk/2. For more details please refer to the device datasheet.

Definiert in Zeile 74 der Datei ili9341.h.

#define CONF_ILI9341_RESET_PIN   QVGA_LCD_RESET

Define what MCU pin the ILI9341 back light pin is connected to.

Define what MCU pin the ILI9341 reset is connected to

Definiert in Zeile 86 der Datei ili9341.h.