add scrolling, fix pwm bug