Microchip® Advanced Software Framework

hx8347a_example.c File Reference

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

hx8347a_color_t bitmap[1600]
uint16_t bitmap_ptr = 0
const hx8347a_color_t color_table[]
Initial value:
= {
HX8347A_COLOR(0, 0, 255), HX8347A_COLOR(0, 255, 0),
HX8347A_COLOR(255, 0, 0), HX8347A_COLOR(255, 255, 0),
HX8347A_COLOR(255, 0, 255), HX8347A_COLOR(0, 255, 255)}
#define HX8347A_COLOR(r, g, b)
This macro generates a 16-bit native color for the display from a 24-bit RGB value.
Definition: hx8347a.h:96

Table of primary and secondary display pixel colors.