TEST

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Committer:
gmehmet
Date:
Wed Apr 10 14:56:25 2019 +0300
Revision:
1:f60eafbf009a
upload from local

Who changed what in which revision?

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