ME11C Sample Code in Maxim Integrated Team
Dependencies: BMI160 max32630hsp3 MemoryLCD USBDevice
Fork of Host_Software_MAX32664GWEC_SpO2_HR-_EXTE by
demoUI/screen/LCDSettings.h@0:b259fd1a88f5, 2019-03-18 (annotated)
- Committer:
- seyhmus.cacina
- Date:
- Mon Mar 18 14:09:48 2019 +0300
- Revision:
- 0:b259fd1a88f5
ME11C Sample Code First Commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| seyhmus.cacina | 0:b259fd1a88f5 | 1 | #ifndef LCDSETTINGS_H |
| seyhmus.cacina | 0:b259fd1a88f5 | 2 | #define LCDSETTINGS_H |
| seyhmus.cacina | 0:b259fd1a88f5 | 3 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 4 | /** MemoryLCD width in pixels */ |
| seyhmus.cacina | 0:b259fd1a88f5 | 5 | #define DISPLAY_WIDTH (128) |
| seyhmus.cacina | 0:b259fd1a88f5 | 6 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 7 | /** MemoryLCD height in pixels */ |
| seyhmus.cacina | 0:b259fd1a88f5 | 8 | #define DISPLAY_HEIGHT (128) |
| seyhmus.cacina | 0:b259fd1a88f5 | 9 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 10 | /** Data type for storing buffer the pixel buffer */ |
| seyhmus.cacina | 0:b259fd1a88f5 | 11 | #if ((DISPLAY_WIDTH % 32) == 0) |
| seyhmus.cacina | 0:b259fd1a88f5 | 12 | #define DISPLAY_BUFFER_TYPE uint32_t |
| seyhmus.cacina | 0:b259fd1a88f5 | 13 | #define DISPLAY_BUFFER_TYPE_MASK (0x1F) |
| seyhmus.cacina | 0:b259fd1a88f5 | 14 | #else |
| seyhmus.cacina | 0:b259fd1a88f5 | 15 | #define DISPLAY_BUFFER_TYPE uint8_t |
| seyhmus.cacina | 0:b259fd1a88f5 | 16 | #define DISPLAY_BUFFER_TYPE_MASK (0x07) |
| seyhmus.cacina | 0:b259fd1a88f5 | 17 | #endif |
| seyhmus.cacina | 0:b259fd1a88f5 | 18 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 19 | #define DISPLAY_BUFFER_TYPE_SIZE (sizeof(DISPLAY_BUFFER_TYPE) * 8) |
| seyhmus.cacina | 0:b259fd1a88f5 | 20 | #define DISPLAY_BUFFER_ELEMENTS ((DISPLAY_WIDTH*DISPLAY_HEIGHT)/DISPLAY_BUFFER_TYPE_SIZE) |
| seyhmus.cacina | 0:b259fd1a88f5 | 21 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 22 | /** Maximum length of a printf to the display */ |
| seyhmus.cacina | 0:b259fd1a88f5 | 23 | #define MAX_PRINTF_CHARS 40 |
| seyhmus.cacina | 0:b259fd1a88f5 | 24 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 25 | /** Color definitions */ |
| seyhmus.cacina | 0:b259fd1a88f5 | 26 | #define White 0xFFFFFFFF |
| seyhmus.cacina | 0:b259fd1a88f5 | 27 | #define Black 0x00000000 |
| seyhmus.cacina | 0:b259fd1a88f5 | 28 | |
| seyhmus.cacina | 0:b259fd1a88f5 | 29 | #endif |
| seyhmus.cacina | 0:b259fd1a88f5 | 30 |
