[Microbit-Python] Sending data to a computer

Andrew Ferguson andrewferguson500 at gmail.com
Tue Mar 22 17:14:30 EDT 2016


D'oh! With all my ideas about UART, I had forgotten the easiest (and most
basic) way to get information from a micro:bit to a computer - *print()*.

On 22 March 2016 at 20:55, warks raspijam <warksraspijam at gmail.com> wrote:

> here is an edited version which has the right port number in the
> MCFLY.py script. Its all martins work. I just hijacked it and used it
> for a cool interface for some minecraft scripts.
>
>
> https://sites.google.com/a/nicholaschamberlaine.co.uk/minecrafthackingresources/hackpack-sow/microbit-micropython-master%20NCSEDIT.zip?attredirects=0&d=1
>
> On Tue, Mar 22, 2016 at 8:52 PM, warks raspijam <warksraspijam at gmail.com>
> wrote:
> > Martin O'Hanlon has written this blog which does what you need. >>>>
> > http://www.stuffaboutcode.com/2015/12/minecraft-microbit-and-x-wing.html
> >
> > On Tue, Mar 22, 2016 at 8:26 PM, Andrew Ferguson
> > <andrewferguson500 at gmail.com> wrote:
> >> Hi all,
> >>
> >> Does anyone know how to send serial data between a computer and a
> Micro:bit,
> >> I can send data to the microbit from Nicholas' REPL program, but I'd
> love a
> >> way for the microbit to be able to send data to the computer. I thought
> UART
> >> would be the solution to this, but the docs state that:
> >>
> >> Initializing the UART will cause the Python console on USB to become
> >> unaccessible, as it uses the same hardware. There is currently no way to
> >> bring the console back, without restarting the module.
> >>
> >>
> >> so I presume it won't work. Is there any way I can specify to send UART
> data
> >> over USB rather than on two specific pins with a way that will not
> interrupt
> >> the operation of the REPL?
> >>
> >> Thanks,
> >> Andrew
> >>
> >> _______________________________________________
> >> Microbit mailing list
> >> Microbit at python.org
> >> https://mail.python.org/mailman/listinfo/microbit
> >>
> _______________________________________________
> 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/20160322/b9b82eee/attachment.html>


More information about the Microbit mailing list