Utility library for HSP SPo2 HR demo including user interface, board support adn accelerometer.

Committer:
gmehmet
Date:
Mon Dec 17 13:58:56 2018 +0300
Revision:
0:a12d6976d64c
create and put source to HSP demo utility repo

Who changed what in which revision?

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