Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
Using other Pins for I2C, SPI
Hi,
I want to use I2C and SPI on other pins than described in the picture here: http://developer.mbed.org/platforms/Nordic-nRF51822/
Accodring to the datasheet any pin can be assigned to any peripheral interface:
Quote:
The GPIOs used for each two-wire interface line can be chosen from any GPIO on the device and are independently configurable.
Will this be supported by the mbed library at some point?
Jonas
Question relating to:
![](/media/cache/platforms/nRF51822-mKIT_ang.png.50x50_q85.png)
2 Answers
9 years, 10 months ago.
Hi,
The following might help you:
https://developer.mbed.org/users/nemovn/notebook/assigning-i2c-pins-manually-/
Best regards, Petter Myhre
9 years, 10 months ago.
Hello,
I can see, that pwm for example is available for all pins, but I2C and some other peripherals have defined only some selection of pins. I don't have any estimation when can this be fixed, but I'll create an issue on github.
Are you familiar with github? There are mbed SDK sources, which are open for community to contribute. You can fix those pins for two-wire interface and send a pull request.
Regards,
0xc0170