Hello everybody!
I am new - to the forum and to MicroPython and to Python, to be quite frank - but I want to try out a Pyboard.
Now - what I would love to do with it: I want to hook it up to a serial terminal and command it from there. I have been doing this with uLisp a lot. I DO NOT use a USB-connector for that (as all the involved tech is very oldfashioned).
My questions, essentially, are:
- Has anyone of you done anything like that, ever? And, more importantly:
- WHAT WOULD BE THE PYTHON CODE TO "GET A REPL OVER THE SERIAL PINS"?
I am sorry if this appears "unresearched", but I must say, I bought an Adafruit Metro M4 BETA, and the thing looks buggy as hell with the default Circuitpython environment (PERMANENT issues with the filesystem and the uploading of sketches and even the USB serial port, NOTHING talking to the serial pins despite trying out all sorts of example sketches). I got fed up, converted it to uLisp, and lo and behold all, all works just fine. Now I consider going for a classic Pyboard with Micropython and ditch Circuitpython (as even the Metro M4 seems to have nothing but 192 KB RAM, so essentially, the Pyboard will be a worthy alternative - and a hopefully more mature one).
Just so you know what the final setup would look like, just hopefully getting a Python REPL, not a LISP REPL:
https://scontent-vie1-1.xx.fbcdn.net/v/ ... e=5C2103DC
and here is a video of what I want to do finally, just this time with Python:
https://www.youtube.com/watch?v=z-u4kUeIqDI
REPL over GPIO serial?
Re: REPL over GPIO serial?
You can use uos.dupterm() to redirect the REPL prompt to a UART stream.
http://docs.micropython.org/en/latest/p ... os.dupterm
http://docs.micropython.org/en/latest/p ... os.dupterm