Hello, everyone!
Does upython unix port really have a 'machine' module with all this classes listed in its doc at http://docs.micropython.org/en/latest/u ... ml#classes ? Because when I try to 'import machine' at unix repl I get "ImportError: no module named 'machine'" and the 'umachine' module has only mem8, mem16, mem32, PinBase and time_pulse_us...
I'm using today's version "MicroPython v1.8.7-320-gda6dbc80 on 2017-02-22". So there is something I can do to use UART in unix port?
Thank you,
Corleo
unix port machine.UART
Re: unix port machine.UART
Please read the introduction to the libraries in the documentation: http://docs.micropython.org/en/latest/u ... index.htmlcorleo wrote:Hello, everyone!
Does upython unix port really have a 'machine' module with all this classes listed in its doc at http://docs.micropython.org/en/latest/u ... ml#classes ?
Per the documentation above, the next step would be checking micropython-lib...Because when I try to 'import machine' at unix repl I get "ImportError: no module named 'machine'"
Unix port provides standard "tty" module and that's the most straightforward way to do that. There's also pyserial work-alike: https://github.com/pfalcon/micropython-serialand the 'umachine' module has only mem8, mem16, mem32, PinBase and time_pulse_us...
I'm using today's version "MicroPython v1.8.7-320-gda6dbc80 on 2017-02-22". So there is something I can do to use UART in unix port?
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/
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/
Re: unix port machine.UART
Hi, would be nice if someone still remember how to do deal with LPT port as gpio and bind that to umachine on unix port, as you can still find DB25 breakout boards around.
Re: unix port machine.UART
There are C libraries which do that: http://parapin.sourceforge.net/ and there is a CPython library called pyparallel:
https://pypi.python.org/pypi/pyparallel/ that you could look at to see if it might be ported to MicroPython.
https://pypi.python.org/pypi/pyparallel/ that you could look at to see if it might be ported to MicroPython.