| #else | #else | ||||
| uint8_t i, e, b; | uint8_t i, e, b; | ||||
| uint16_t s=0; | uint16_t s=0; | ||||
| static const prog_uint8_t table[] = {225,124,65,34,17,9,4,2,1}; | |||||
| static const uint8_t PROGMEM table[] = {225,124,65,34,17,9,4,2,1}; | |||||
| if (val == 0) return 0; | if (val == 0) return 0; | ||||
| if (val >= 1023) return 127; | if (val >= 1023) return 127; |