Fork of Silabs MemoryLCD library

Dependents:   demoUI whrmDemoUI Host_Software_MAX32664GWEB_HR_EXTENDED Host_Software_MAX32664GWEC_SpO2_HR-_EXTE ... more

C++ library for Sharp Microelectronics 1.28 inch LCD TFT, LS013B7DH03, SPI bus. Forked from Silicon Labs MemoryLCD display driver.

Committer:
stevew817
Date:
Wed Jul 29 09:03:13 2015 +0000
Revision:
6:fe04073fe90c
Parent:
0:a0faa86660d4
Child:
10:231fa7861d1f
Update to showBMP() function and buffer type to support display widths that are not a multiple of 32.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Steven Cooreman 0:a0faa86660d4 1 #ifndef LCDSETTINGS_H
Steven Cooreman 0:a0faa86660d4 2 #define LCDSETTINGS_H
Steven Cooreman 0:a0faa86660d4 3
Steven Cooreman 0:a0faa86660d4 4 /** MemoryLCD width in pixels */
Steven Cooreman 0:a0faa86660d4 5 #define DISPLAY_WIDTH (128)
Steven Cooreman 0:a0faa86660d4 6
Steven Cooreman 0:a0faa86660d4 7 /** MemoryLCD height in pixels */
Steven Cooreman 0:a0faa86660d4 8 #define DISPLAY_HEIGHT (128)
Steven Cooreman 0:a0faa86660d4 9
Steven Cooreman 0:a0faa86660d4 10 /** Data type for storing buffer the pixel buffer */
stevew817 6:fe04073fe90c 11 #if ((DISPLAY_WIDTH % 32) == 0)
Steven Cooreman 0:a0faa86660d4 12 #define DISPLAY_BUFFER_TYPE uint32_t
stevew817 6:fe04073fe90c 13 #else
stevew817 6:fe04073fe90c 14 #define DISPLAY_BUFFER_TYPE uint8_t
stevew817 6:fe04073fe90c 15 #endif
Steven Cooreman 0:a0faa86660d4 16
Steven Cooreman 0:a0faa86660d4 17 #define DISPLAY_BUFFER_TYPE_SIZE (sizeof(DISPLAY_BUFFER_TYPE) * 8)
Steven Cooreman 0:a0faa86660d4 18 #define DISPLAY_BUFFER_ELEMENTS ((DISPLAY_WIDTH*DISPLAY_HEIGHT)/DISPLAY_BUFFER_TYPE_SIZE)
Steven Cooreman 0:a0faa86660d4 19
Steven Cooreman 0:a0faa86660d4 20 /** Maximum length of a printf to the display */
Steven Cooreman 0:a0faa86660d4 21 #define MAX_PRINTF_CHARS 40
Steven Cooreman 0:a0faa86660d4 22
Steven Cooreman 0:a0faa86660d4 23 /** Color definitions */
Steven Cooreman 0:a0faa86660d4 24 #define White 0xFFFFFFFF
Steven Cooreman 0:a0faa86660d4 25 #define Black 0x00000000
Steven Cooreman 0:a0faa86660d4 26
Steven Cooreman 0:a0faa86660d4 27 #endif