- Home
- Help and Support
- Support Forum
- Servo Pi
- BOARD vs BCM
BOARD vs BCM
1309 Views - Created 28/04/2019
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 ?
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
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.
Formatting your Forum Post
This forum uses BBCode, short for Bulletin Board Code, which is a lightweight markup language used primarily in online forums and message boards to format and structure posts. It provides a simple way for users to add formatting and styling to their text without requiring knowledge of HTML or other complex programming languages. With BBCode, users can enhance their messages by applying formatting tags such as bold or italic. Additionally, BBCode allows users to insert images, create clickable links, quote other users, and more.
Type | Syntax | Purpose |
---|---|---|
Bold | [b]{text}[/b] | Makes {text} bold |
Italic | [i]{text}[/i] | Makes {text} italic |
Quote | [quote]{text}[/quote] | Creates a quotation box saying {text} |
Image | [img]{url}[/img] | Shows the image indicated by {url} |
Link | [url]{url}[/url] | Makes a link to {url} |