I am using WiringPi to simulate PWM output to my GPIO pins. My problem is that I converted from the regular Rpi.GPIO library to WiringPi. I used BCM as GPIO mode but now WiringPi uses BOARD. How can I force WiringPi to uses BCM instead?

1 Answer 1


wiringPiSetup() uses its own proprietary "wPi" numbering scheme. To change to BCM (GPIO), use wiringPiSetupGpio() instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.