basic working pwm controller code. tested in non-repo devel path on pi