Advertisement
silver2row

oops and pwm errors...

Sep 11th, 2022
892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. OSError: [Errno 22] Invalid argument
  2.  
  3. During handling of the above exception, another exception occurred:
  4.  
  5. Traceback (most recent call last):
  6.   File "/home/debian/Motter/RandomCodes/./PWM_PWM.py", line 9, in <module>
  7.     LED = Pwm('/dev/bone/pwm/1/b', frequency=1000)
  8.   File "/home/debian/Motter/RandomCodes/PWM.py", line 23, in __init__
  9.     self.configure( **kwargs )
  10.   File "/home/debian/Motter/RandomCodes/PWM.py", line 76, in configure
  11.     (self.path/'period').write_text( str( period ) )
  12.   File "/usr/lib/python3.9/pathlib.py", line 1275, in write_text
  13.     return f.write(data)
  14. OSError: [Errno 22] Invalid argument
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement