HX8347A display controller driver Example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | COLOR_TABLE_SIZE (sizeof(color_table) / sizeof(color_table[0])) |
Number of colors stored in the color_table array. More... | |
#define | TOTAL_PIXELS ((uint32_t)HX8347A_DEFAULT_WIDTH * HX8347A_DEFAULT_HEIGHT) |
Number of pixels for full screen. More... | |
Functions | |
int | main (void) |
Main application. More... | |
Variables | |
hx8347a_color_t | bitmap [1600] |
uint16_t | bitmap_ptr = 0 |
const hx8347a_color_t | color_table [] |
Table of primary and secondary display pixel colors. More... | |
#define COLOR_TABLE_SIZE (sizeof(color_table) / sizeof(color_table[0])) |
Number of colors stored in the color_table array.
Referenced by main().
#define TOTAL_PIXELS ((uint32_t)HX8347A_DEFAULT_WIDTH * HX8347A_DEFAULT_HEIGHT) |
Number of pixels for full screen.
Referenced by main().
int main | ( | void | ) |
Main application.
References bitmap, bitmap_ptr, board_init(), color_table, COLOR_TABLE_SIZE, hx8347a_backlight_on(), HX8347A_COLOR, hx8347a_copy_pixels_to_screen(), HX8347A_DEFAULT_HEIGHT, HX8347A_DEFAULT_WIDTH, hx8347a_duplicate_pixel(), hx8347a_init(), hx8347a_set_bottom_right_limit(), hx8347a_set_top_left_limit(), sysclk_init(), and TOTAL_PIXELS.
hx8347a_color_t bitmap[1600] |
uint16_t bitmap_ptr = 0 |
const hx8347a_color_t color_table[] |
Table of primary and secondary display pixel colors.