Using PWM in Omega2
-
Hi,
When I used the following command for configuring PWM I ma getting sytax error While running python programpwm-exp 0 i
want to configure PWM on channel 0 with different values in different time so that I used "i" as a variable but i am getting the following error while running
pwm-exp 0 i
^
SyntaxError: invalid syntaxI am not included any header file for PWM only used
pwm-exp -i
at the beginning,Any body help me on this Thanks in advance
-
@Arun-Soman
What you have there is the command line tool for PWM expansion. For python program you need to use python library instead. check the following document
https://docs.onion.io/omega2-docs/pwm-expansion-python-module.html