Code used to focus a High Quality Raspberry Pi Camera using a continuous servo.
The servo is connected to GPIO 18 in this example.
For more information about this project:
Instructables: https://www.instructables.com/id/Focus-the-Pi-High-Quality-Camera-With-Lego-and-a-S
Hackster: https://www.hackster.io/martin-mander/focus-the-pi-high-quality-camera-with-lego-and-a-servo-4aec4c
YouTube: https://youtu.be/WlYJ92WTSok