Fix PWM demo for non-Device Tree
Modified PWM commands for use without Device Tree...
-
pwm_init
command now accepts Frequency (2,000 to 800,000)...pwm_init 1 11 2000
-
Add
pwm_duty_set
andpwm_freq_set
to set Duty Cycle (percentage from 0 to 100) and Frequency...pwm_duty_set 1 50 pwm_freq_set 1 2000
-
Add
pwm_duty_get
to display Duty Cycle...pwm_duty_get 1