2

I understand that in order to use these two pins as general purpose I will need to disable UART. I tried following these instructions but /etc/inittab doesn't exist on raspberry pi 2 as far as I can tell. How do you set up these two pins on the Pi 2 so that you can use them as general purpose?

Thank you

  • 1
    I will probably never understand why people follow obsolete 4 year old posts and wonder why they don't work. Run sudo raspi-config and disable in Advanced. – Milliways Mar 14 '16 at 5:17
1

You do not need to disable their use as a UART if you want to use them in INPUT mode or OUTPUT mode. Just switch them to that mode.

You only need to disable the system's use of them as a UART if you want to leave them in UART mode, i.e. you want to use them to send/receive serial messages.

  • Would serial activity (ex. kernel output) break in GPIO activity, wouldn't it? – edo1 Mar 14 '16 at 10:28
  • No. When you change the mode to an INPUT or an OUTPUT (or any mode other then ALT0) the serial output in in effect lost. An internal switch redirects serial output to a sink. – joan Mar 14 '16 at 11:38
1

Like @Milliways said, you will need to run the command sudo raspi-config then navigate to Advanced and then Serial and select no. Then reboot and you should be set.

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.