Maxim Integrated / Mbed OS Host_Software_MAX32664GWEB_HR_wrist

Dependencies:   Maxim_Sensor_Hub_Communications BMI160 whrmDemoUI max32630hsp3

Fork of Host_Software_MAX32664GWEB_HR_wrist by mehmet gok

demoUI/screen/LCDSettings.h

Committer:
gmehmet
Date:
2019-01-10
Revision:
13:3d1a6b947396
Parent:
0:ddc2fef69ef9

File content as of revision 13:3d1a6b947396:

#ifndef LCDSETTINGS_H
#define LCDSETTINGS_H

/** MemoryLCD width in pixels */ 
#define DISPLAY_WIDTH				(128)

/** MemoryLCD height in pixels */
#define DISPLAY_HEIGHT				(128)

/** Data type for storing buffer the pixel buffer */
#if	((DISPLAY_WIDTH % 32) == 0)
#define	DISPLAY_BUFFER_TYPE			uint32_t
#define DISPLAY_BUFFER_TYPE_MASK    (0x1F)
#else
#define DISPLAY_BUFFER_TYPE			uint8_t
#define DISPLAY_BUFFER_TYPE_MASK    (0x07)
#endif

#define DISPLAY_BUFFER_TYPE_SIZE	(sizeof(DISPLAY_BUFFER_TYPE) * 8)
#define DISPLAY_BUFFER_ELEMENTS 	((DISPLAY_WIDTH*DISPLAY_HEIGHT)/DISPLAY_BUFFER_TYPE_SIZE)

/** Maximum length of a printf to the display */
#define MAX_PRINTF_CHARS			40

/** Color definitions */
#define White						0xFFFFFFFF
#define Black						0x00000000

#endif