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 !