Report Bugs Here

Moderator: Mmiscool

User avatar
By heckler
#62987 Or if we can't fix the SERVO command so that it is only affected while NEO data is being sent then would it be possible to modify the PWO statement so that one could specify both the pulse width and the period (frequency) of the pulse?

The PWO output is only affected by NEO while NEO data is being output (unlike the SERVO statement where the servo output is shut off for > 25 sec.) so if we could modify (improve) the PWO statement so it could output a pulse at the rate that a servo wants (with a period of 20ms) then that would take the place of the SERVO statement and be a big improvement.

regards
dwight
User avatar
By Mmiscool
#62991 the pwmfreq() function can set the pwm frequency. This might help. It was missing from the docs. I just added it.
https://docs.google.com/document/d/1EiY ... l4wimhj4q4
User avatar
By heckler
#62999 Hi Mike,

So I tried to test the pwmfreq(50) function and I get an error message
Error at line 2: Tried to call unknown built-in function!


What version of the espBASIC is this implemented in??

Is it possible that the documentation is not correct as to the actual statement syntax??
pwmfreq() or should it be pwmfrequency() I'll try it and see but if you can clarify or tell me which version it is in that would be awesome.

thanks for all your efforts
dwight
User avatar
By Mmiscool
#63009 My apologies. Its a command. Not a function.

I will update the docs when i get home later.

Code: Select allPwmfreq 50