Merge pull request #6109 from thinkyhead/rc_soft_pwm_dither
PWM dithering followup
This commit is contained in:
commit
b47eaf14ae
@ -1426,6 +1426,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1409,6 +1409,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1409,6 +1409,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1418,6 +1418,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1420,6 +1420,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1460,6 +1460,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1426,6 +1426,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1426,6 +1426,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1426,6 +1426,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1427,6 +1427,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1441,6 +1441,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1447,6 +1447,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1418,6 +1418,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1426,6 +1426,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1531,6 +1531,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1516,6 +1516,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1520,6 +1520,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1519,6 +1519,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1529,6 +1529,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1429,6 +1429,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
@ -1422,6 +1422,12 @@
|
|||||||
// at zero value, there are 128 effective control positions.
|
// at zero value, there are 128 effective control positions.
|
||||||
#define SOFT_PWM_SCALE 0
|
#define SOFT_PWM_SCALE 0
|
||||||
|
|
||||||
|
// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
|
||||||
|
// be used to mitigate the associated resolution loss. If enabled,
|
||||||
|
// some of the PWM cycles are stretched so on average the wanted
|
||||||
|
// duty cycle is attained.
|
||||||
|
//#define SOFT_PWM_DITHER
|
||||||
|
|
||||||
// Temperature status LEDs that display the hotend and bed temperature.
|
// Temperature status LEDs that display the hotend and bed temperature.
|
||||||
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.
|
||||||
// Otherwise the RED led is on. There is 1C hysteresis.
|
// Otherwise the RED led is on. There is 1C hysteresis.
|
||||||
|
Loading…
Reference in New Issue
Block a user