Skip to content

Commit

Permalink
Update color-convert.cpp
Browse files Browse the repository at this point in the history
remove unused table
  • Loading branch information
LAutour authored Oct 6, 2022
1 parent 4017c4c commit 7546eab
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions color-convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,6 @@ const uint8_t lumConvTab[256] = {
//255
};

//from https://github.com/SebiTimeWaster/ICN2053_ESP32_LedWall
uint16_t Translate8To16Bit[256] = {
0,46,92,139,186,233,280,327,375,422,470,519,567,615,664,713,
762,812,861,911,961,1011,1061,1112,1163,1214,1265,1317,1368,1420,1473,1525,
1578,1631,1684,1737,1791,1844,1899,1953,2007,2062,2117,2173,2228,2284,2340,2397,
2453,2510,2568,2625,2683,2741,2799,2858,2917,2976,3036,3096,3156,3216,3277,3338,
3399,3461,3523,3586,3648,3711,3775,3838,3902,3967,4032,4097,4162,4228,4294,4361,
4428,4495,4563,4631,4699,4768,4838,4907,4978,5048,5119,5191,5262,5335,5407,5481,
5554,5628,5703,5778,5853,5929,6006,6083,6160,6238,6317,6396,6476,6556,6636,6718,
6799,6882,6965,7048,7132,7217,7302,7388,7475,7562,7650,7739,7828,7918,8008,8099,
8191,8284,8377,8472,8567,8662,8759,8856,8954,9053,9153,9253,9355,9457,9560,9664,
9769,9875,9982,10090,10199,10309,10420,10532,10645,10760,10875,10991,11109,11228,
11348,11469,11591,11715,11840,11967,12094,12223,12354,12486,12620,12755,12891,13030,
13169,13311,13454,13599,13746,13895,14045,14198,14352,14509,14667,14828,14991,15157,
15324,15494,15667,15842,16020,16200,16383,16569,16758,16951,17146,17345,17547,17752,
17961,18174,18391,18612,18837,19067,19301,19539,19783,20032,20286,20546,20812,21083,
21361,21646,21938,22237,22544,22859,23183,23516,23859,24211,24575,24950,25338,25739,
26153,26583,27029,27493,27975,28478,29003,29553,30130,30736,31375,32051,32767,33530,
34345,35221,36167,37195,38322,39567,40959,42537,44359,46514,49151,52551,57343,65535
};

const uint8_t mask_x[9] = {0,1,3,7,15,31,63,127,255};

uint16_t color111to565(uint8_t r, uint8_t g, uint8_t b)
Expand Down

0 comments on commit 7546eab

Please sign in to comment.