lcd controller ili93xx example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "asf.h"
#include "stdio_serial.h"
#include "conf_board.h"
#include "conf_clock.h"
#include "smc.h"
Macros | |
#define | ILI93XX_LCD_CS 1 |
Chip select number to be set. More... | |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
int | main (void) |
Application entry point for smc_lcd example. More... | |
Variables | |
struct ili93xx_opt_t | g_ili93xx_display_opt |
#define ILI93XX_LCD_CS 1 |
Chip select number to be set.
Referenced by main().
|
static |
Configure UART console.
Configure console UART.
References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
int main | ( | void | ) |
Application entry point for smc_lcd example.
Initialize debug console
Enable peripheral clock
Configure SMC interface for Lcd
Initialize display parameter
Switch off backlight
Initialize LCD
Set backlight level
Turn on LCD
Draw text, image and basic shapes on the LCD
References AAT31XX_AVG_BACKLIGHT_LEVEL, aat31xx_disable_backlight(), aat31xx_set_backlight(), ili93xx_opt_t::background_color, board_init(), COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_RED, COLOR_VIOLET, COLOR_WHITE, configure_console(), ili93xx_opt_t::foreground_color, g_ili93xx_display_opt, ili93xx_display_on(), ili93xx_draw_circle(), ili93xx_draw_filled_rectangle(), ili93xx_draw_line(), ili93xx_draw_string(), ili93xx_init(), ILI93XX_LCD_CS, ILI93XX_LCD_HEIGHT, ILI93XX_LCD_WIDTH, ili93xx_set_cursor_position(), ili93xx_set_foreground_color(), pmc_enable_periph_clk(), smc_set_cycle_timing(), smc_set_mode(), smc_set_pulse_timing(), smc_set_setup_timing(), sysclk_init(), ili93xx_opt_t::ul_height, and ili93xx_opt_t::ul_width.
struct ili93xx_opt_t g_ili93xx_display_opt |
Referenced by main(), and run_test_init().