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

Health Sensor Board Embedded Heart Rate Algorithm Sensor Hub + ECG, Wearables Ev Kit MAXREFDES101#