PWM - one frequency for all pin - it's nonsense
Posted: Mon Jan 12, 2015 1:05 pm
1) I ask different freq for each pin, but real frequency is equal on pin 4 and 7!? Duty set work right.
2) It is not clear what does the "getclock" and "getduty", and how capture signals from external sources
P.S. LUA NodeMCU will live !
Code: Select all
pwm.setup(4,299,121)
> pwm.start(4)
> pwm.setup(7,200,400)
> pwm.start(7)
> print(pwm.getclock(4))
200
> print(pwm.getclock(7))
200
> pwm.setclock(4,990)
> pwm.setclock(7,100)
> print(pwm.getclock(4))
100
> print(pwm.getclock(7))
100
> print(pwm.getduty(4))
121
> print(pwm.getduty(7))
400
>
2) It is not clear what does the "getclock" and "getduty", and how capture signals from external sources
P.S. LUA NodeMCU will live !