Closed mattgantner closed 4 years ago
Hey, thank you for submitting this update to the documentation! I'm so sorry this PR has been open for ~2 months. I haven't had as much bandwidth for side projects since COVID-19 began.
I'm going to add this revision into the release-1.2.0 branch 🎉
I edited the README to include a fix for an edge case a user might experience on a Raspberry 4 and following the Medium article tutorial.
I followed the steps in Medium article, I ran into issues on Raspberry Pi 4 running Rasberian (Feb 2020). After initializing the python virtual env and running "rpi-deep-pantilt test pantilt" I received the error noted below. This Github comment helped to resolve the issue.
rpi-deep-pantilt test pantilt INFO:root:Starting Pan-Tilt HAT test! INFO:root:Pan-Tilt HAT should follow a smooth sine wave Traceback (most recent call last): File "/home/pi/projects/rpi-deep-pantilt/.venv/bin/rpi-deep-pantilt", line 8, in
sys.exit(main())
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/rpi_deep_pantilt/cli.py", line 153, in main
cli()
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(args, **kwargs)
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/rpi_deep_pantilt/cli.py", line 141, in pantilt
return pantilt_test()
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/rpi_deep_pantilt/control/hardware_test.py", line 38, in pantilt_test
pantilthat.pan(a)
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/pantilthat/pantilt.py", line 466, in servo_one
self.setup()
File "/home/pi/projects/rpi-deep-pantilt/.venv/lib/python3.7/site-packages/pantilthat/pantilt.py", line 72, in setup
self._i2c = SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory