diff --git a/project/example/ble/ble_peripheral/app/src/light_transition.c b/project/example/ble/ble_peripheral/app/src/light_transition.c index 6c87f92..34079ed 100644 --- a/project/example/ble/ble_peripheral/app/src/light_transition.c +++ b/project/example/ble/ble_peripheral/app/src/light_transition.c @@ -17,21 +17,21 @@ volatile uint8_t Light_Transition_FadeActive; #define POWER_FADE_OFF_REMAINDER (POWER_FADE_Q12_MAX % POWER_FADE_OFF_TICKS) /* - * Gamma 1.8, mapping APP levels 1..100 to a stable physical range of - * 10%..100%. Values are Q12 scale factors, so the runtime path is only: + * Gamma 1.8, mapping APP levels 1..100 to a physical range of 1%..100%. + * Values are Q12 scale factors, so the runtime path is only: * table lookup + multiply + shift. */ static const uint16_t brightness_gamma_q12[100] = { - 410U, 411U, 413U, 416U, 421U, 427U, 433U, 441U, 449U, 459U, - 469U, 480U, 492U, 505U, 519U, 533U, 548U, 564U, 581U, 598U, - 617U, 636U, 656U, 676U, 697U, 719U, 742U, 765U, 789U, 814U, - 839U, 866U, 892U, 920U, 948U, 977U, 1006U, 1037U, 1067U, 1099U, - 1131U, 1164U, 1197U, 1231U, 1266U, 1301U, 1337U, 1374U, 1411U, 1449U, - 1488U, 1527U, 1566U, 1607U, 1648U, 1689U, 1731U, 1774U, 1818U, 1862U, - 1906U, 1951U, 1997U, 2044U, 2091U, 2138U, 2186U, 2235U, 2284U, 2334U, - 2385U, 2436U, 2488U, 2540U, 2593U, 2646U, 2700U, 2755U, 2810U, 2865U, - 2922U, 2978U, 3036U, 3094U, 3152U, 3211U, 3271U, 3331U, 3392U, 3453U, - 3515U, 3577U, 3640U, 3704U, 3768U, 3832U, 3897U, 3963U, 4029U, 4096U + 41U, 42U, 45U, 48U, 54U, 60U, 67U, 75U, 85U, 95U, + 106U, 119U, 132U, 146U, 161U, 177U, 193U, 211U, 229U, 249U, + 269U, 290U, 311U, 334U, 357U, 381U, 406U, 432U, 459U, 486U, + 514U, 542U, 572U, 602U, 633U, 665U, 697U, 731U, 764U, 799U, + 834U, 871U, 907U, 945U, 983U, 1022U, 1061U, 1102U, 1143U, 1184U, + 1227U, 1270U, 1313U, 1358U, 1403U, 1449U, 1495U, 1542U, 1590U, 1638U, + 1687U, 1737U, 1787U, 1838U, 1890U, 1942U, 1995U, 2049U, 2103U, 2158U, + 2214U, 2270U, 2327U, 2384U, 2442U, 2501U, 2560U, 2620U, 2681U, 2742U, + 2804U, 2867U, 2930U, 2993U, 3058U, 3123U, 3188U, 3255U, 3321U, 3389U, + 3457U, 3525U, 3595U, 3664U, 3735U, 3806U, 3878U, 3950U, 4023U, 4096U }; /*