makefile: add flags HA_NODE
pwm_device: change calculation of prescaler
rgb: add calibrating method