31 lines
804 B
C
31 lines
804 B
C
#ifndef _GAMMA_H_
|
|
#define _GAMMA_H_
|
|
|
|
#ifdef __AVR
|
|
#include <avr/pgmspace.h>
|
|
#elif defined(ESP8266)
|
|
#include <pgmspace.h>
|
|
#else
|
|
#ifndef PROGMEM
|
|
#define PROGMEM
|
|
#endif
|
|
#endif
|
|
|
|
static const uint8_t PROGMEM
|
|
gamma5[] = {
|
|
0x00,0x01,0x02,0x03,0x05,0x07,0x09,0x0b,
|
|
0x0e,0x11,0x14,0x18,0x1d,0x22,0x28,0x2e,
|
|
0x36,0x3d,0x46,0x4f,0x59,0x64,0x6f,0x7c,
|
|
0x89,0x97,0xa6,0xb6,0xc7,0xd9,0xeb,0xff },
|
|
gamma6[] = {
|
|
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x08,
|
|
0x09,0x0a,0x0b,0x0d,0x0e,0x10,0x12,0x13,
|
|
0x15,0x17,0x19,0x1b,0x1d,0x20,0x22,0x25,
|
|
0x27,0x2a,0x2d,0x30,0x33,0x37,0x3a,0x3e,
|
|
0x41,0x45,0x49,0x4d,0x52,0x56,0x5b,0x5f,
|
|
0x64,0x69,0x6e,0x74,0x79,0x7f,0x85,0x8b,
|
|
0x91,0x97,0x9d,0xa4,0xab,0xb2,0xb9,0xc0,
|
|
0xc7,0xcf,0xd6,0xde,0xe6,0xee,0xf7,0xff };
|
|
|
|
#endif // _GAMMA_H_
|