Gamma Tab for PWM Led Matrix

Hey all

I'm working on a firmware to drive some RGB Matrixes - one important step is still missing.

The RGB leds need's a logaritmic gammatab to improve the display quality (128,128,128 is not half the brightness).

Thats why I want to ask you, if someone created a nice gamma lookup table for that problem.

I tried a standart 2.2 gamma tab, but the overall image is way too bright:

0,0x15,0x1d,0x22,0x27,0x2b,0x2f,0x32,
0x36,0x39,0x3b,0x3e,0x40,0x43,0x45,0x47,
0x49,0x4b,0x4d,0x4f,0x51,0x53,0x55,0x56,
0x58,0x5a,0x5b,0x5d,0x5e,0x60,0x61,0x63,
0x64,0x65,0x67,0x68,0x69,0x6b,0x6c,0x6d,
0x6f,0x70,0x71,0x72,0x73,0x75,0x76,0x77,
0x78,0x79,0x7a,0x7b,0x7c,0x7e,0x7f,0x80,
0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,
0x89,0x8a,0x8b,0x8b,0x8c,0x8d,0x8e,0x8f,
0x90,0x91,0x92,0x93,0x94,0x95,0x95,0x96,
0x97,0x98,0x99,0x9a,0x9a,0x9b,0x9c,0x9d,
0x9e,0x9f,0x9f,0x0a0,0x0a1,0x0a2,0x0a2,0x0a3,
0xa4,0x0a5,0x0a6,0x0a6,0x0a7,0x0a8,0x0a9,0x0a9,
0xaa,0x0ab,0x0ab,0x0ac,0x0ad,0x0ae,0x0ae,0x0af,
0xb0,0x0b0,0x0b1,0x0b2,0x0b3,0x0b3,0x0b4,0x0b5,
0xb5,0x0b6,0x0b7,0x0b7,0x0b8,0x0b9,0x0b9,0x0ba,
0xbb,0x0bb,0x0bc,0x0bd,0x0bd,0x0be,0x0bf,0x0bf,
0xc0,0x0c0,0x0c1,0x0c2,0x0c2,0x0c3,0x0c4,0x0c4,
0xc5,0x0c5,0x0c6,0x0c7,0x0c7,0x0c8,0x0c8,0x0c9,
0xca,0x0ca,0x0cb,0x0cb,0x0cc,0x0cd,0x0cd,0x0ce,
0xce,0x0cf,0x0d0,0x0d0,0x0d1,0x0d1,0x0d2,0x0d2,
0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