49
49
// auto-detect the data type for PWM tables
55
#define PWM_DATATYPE uint8_t
56
#define PWM_DATATYPE2 uint16_t
58
#define PWM_GET(x,y) pgm_read_byte(x+y)
55
#define PWM_DATATYPE uint8_t
56
#define PWM_DATATYPE2 uint16_t
58
#define PWM_GET(x,y) pgm_read_byte(x+y)
60
#define PWM_DATATYPE uint16_t
62
#define PWM_DATATYPE2 uint32_t
65
#define PWM_TOP 1023 // 10 bits by default
67
// pointer plus 2*y bytes
68
//#define PWM_GET(x,y) pgm_read_word(x+(2*y))
69
// nope, the compiler was already doing the math correctly
70
#define PWM_GET(x,y) pgm_read_word(x+y)
60
#define PWM_DATATYPE uint16_t
62
#define PWM_DATATYPE2 uint32_t
65
#define PWM_TOP 1023 // 10 bits by default
67
// pointer plus 2*y bytes
68
//#define PWM_GET(x,y) pgm_read_word(x+(2*y))
69
// nope, the compiler was already doing the math correctly
70
#define PWM_GET(x,y) pgm_read_word(x+y)
73
73
// use UI-defined ramp tables if they exist