micropython-serial - pySerial-like module (unix port)

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

micropython-serial - pySerial-like module (unix port)

Post by pfalcon » Fri Aug 29, 2014 8:42 pm

https://github.com/pfalcon/micropython-serial

Very lightweight, supports just basic blocking mode.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

ekawahyu
Posts: 1
Joined: Sun Oct 11, 2015 9:47 pm

Re: micropython-serial - pySerial-like module (unix port)

Post by ekawahyu » Sun Oct 11, 2015 9:57 pm

I have installed micropython-os and micropython-fcntl using pip2.7 (macports) on OSX. I put serial.py at the same directory of my micropython build. But it keeps getting me this error:

>>> import serial
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "serial.py", line 8, in <module>
ImportError: no module named 'os'

What am I missing here? Thank you.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: micropython-serial - pySerial-like module (unix port)

Post by pfalcon » Mon Oct 12, 2015 6:31 am

When you use pip, you install for CPython. To install modules for MicroPython, you should use its own builtin package manager, upip, as described in MicroPython README: https://github.com/micropython/micropython
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply