BOARD vs BCM
The Servo PWM Pi is a 16-channel, 12-bit PWM controller for driving LEDs and RC servos on the Raspberry Pi
28/04/2019
Posted by:
supernono
i trying to use a servo pi board all run nice with the example
is it possible to use the the GPIO.setmode(GPIO.BCM) mode ?
i find in ServoPi.py file in
line 141 : GPIO.setmode(GPIO.BOARD)
line 142,284,294 : GPIO.setup(7, GPIO.OUT)
can i tweak these 4 line to run BCM mode ?
29/04/2019
Posted by:
andrew
You should just need to change line 141 to GPIO.setmode(GPIO.BCM) and update all references to GPIO 7 to be 4 instead.
29/04/2019
Posted by:
supernono
thank you andrew
Forum Notice – Closure to New Posts
As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.
We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.
We appreciate your understanding and continued support.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.