[Microbit-Python] UART Pins
Nevil Hunt
nevil.hunt at hotmail.co.uk
Mon May 16 05:02:05 EDT 2016
Thanks Jonathan!
If as you say there is nothing on the SPI pins when I need an external UART I will probably use P14 MISO as UART Rx, P15 MOSI as UART Tx.
As far as a convention for using the 'major' GPIO pins for the UART my suggestion would be to use P1 & P2 as P0 is the default for generating audio.
Nevil
From: Jonathan.Austin at arm.com
To: microbit at python.org
Date: Sun, 15 May 2016 18:50:05 +0000
Subject: Re: [Microbit-Python] UART Pins
On 15 May 2016, at 17:22, Nevil Hunt <nevil.hunt at hotmail.co.uk> wrote:
Thanks David!
I take it using P3,4,5,6,7,9,10 or 11 would interfere with the LEDs & Switches on the micro:bit.
That’s correct - from the ‘DAL’ there’s a way to turn off the display to use these, if you really need them :)
Looking at https://microbit-micropython.readthedocs.io/en/latest/display.html I don’t see an equivalent from MicroPython - can anyone comment on whether there’s a
way to do this?
What about using the SPI or I2C pins? Is there anything on the micro:bit hanging off any of these pins that would conflict with the UART?
The on-board accelerometer and magnetometer are hanging off I2C, but nothing on-board is using SPI, so you shouldn’t have any trouble using those :)
Do you think there’s value in a convention for tx/rx on the edge connector? Joe and I had previously discussed suggesting this is P0 and P1 (the first two big rings) which would allow two micro:bits to be turned face-to-face and connected through those
rings and then talk to each other!
Jonny
Nevil
Date: Sun, 15 May 2016 11:44:18 +0100
From: david at thinkingbinaries.com
To: microbit at python.org
Subject: Re: [Microbit-Python] UART Pins
Read the docs ;-)
http://microbit-micropython.readthedocs.io/en/latest/uart.html
You can specify any
other pins you want by passing the desired pin objects to the tx and rxparameters.
David
___________________________________________________________
David Whale, B.Sc (Hons), MIET
Software Engineer and IET Schools Liaison Officer, Essex
On 15 May 2016 at 11:09, Nevil Hunt <nevil.hunt at hotmail.co.uk> wrote:
Hi David,
My micro:bit diagram shows the I2C and SPI pins on the edge connector. Which are the UART Tx & Rx pins?
Nevil
Date: Sat, 14 May 2016 16:05:57 +0100
From: david at thinkingbinaries.com
To: microbit at python.org
Subject: Re: [Microbit-Python] Introducing myself
How about a BBC micro talking to a BBC micro:bit over serial? The RS422 interface at the back of the original beeb is just a UART. Need a level shifter, then bring into UART pins on the expansion pads at the bottom of the micro:bit and
use MicroPython UART object.
_______________________________________________ Microbit mailing listMicrobit at python.org https://mail.python.org/mailman/listinfo/microbit
_______________________________________________
Microbit mailing list
Microbit at python.org
https://mail.python.org/mailman/listinfo/microbit
_______________________________________________ Microbit mailing list Microbit at python.orghttps://mail.python.org/mailman/listinfo/microbit
_______________________________________________
Microbit
mailing list
Microbit at python.org
https://mail.python.org/mailman/listinfo/microbit
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose,
or store or copy the information in any medium. Thank you.
_______________________________________________
Microbit mailing list
Microbit at python.org
https://mail.python.org/mailman/listinfo/microbit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160516/34a87d21/attachment.html>
More information about the Microbit
mailing list