Unix - I compiled the Unix port of MicroPython. It is useful for writing a program prototype before using it in a microcontroller. Sure, micropython on Linux does not have modules like those included for esp32 or esp8266.
As I have mentioned earlier, MicroPython firmware for microcontrollers compiled by me does not include webrepl and upip modules.
Here where micropython for Linux can be useful. Follow the following transcript to install any modules:
$ micropython -m upip install micropython-upip
Installing to: /home/sharil/.micropython/lib/
Warning: micropython.org SSL certificate is not validated
Installing micropython-upip 1.2.4 from https://micropython.org/pi/upip/upip-1.2.4.tar.gz
I got two new files under the installing directory namely; upip.py and upip_utarfile.py
You can then copy these files to /pyboard in your rshell session. I assumed the modules are already nearly bug-free. I usually copy a mpy file to my microcontrollers.
Use mpy-cross to compile any py file to mpy, for example:
$ mpy-cross upip.py
$ ls -l upip.*
-rw-r--r-- 1 sharil sharil 4320 Oct 10 12:03 upip.mpy
-rw-r--r-- 1 sharil sharil 8205 Oct 10 11:27 upip.py
MicroPython mpy-cross for micropython1-10 will produce a mpy file for micropython1-10 only. Make sure you use mpy-cross for micropython1-11 if your firmware is 1-11-*.
When both py and mpy files exist under /pyboard, for example, mod.py and mod.mpy, micropython will use the mod.py file.
I will upload the latest firmware build to my GitHub repository. The unix, windows micropython and mpy-cross for Linux are here.
Now for something different, programming your brain. I believe I can program my brain to give a better mind. My brain is like my esp32, and my mind is like the latest micropython firmware.
Our brains take in anything, positive or negative. We were told to meditate. Therein lies the problem. A quiet brain invites negative thoughts unless it is trained not to do so.
Here is the deal. I use God Mantra to program my brain for a better mind. Repeat these lines slowly and with conviction during your meditation:
I am healthy
I am what I am
Here I have four positive personal assertions. You can choose anything you like - kind, brave, beautiful, clever, or any positive words. Be sure to use positive assertive words only. Do this fifteen minutes each day. You will upgrade your mind and will have a better life.
As I have mentioned earlier, MicroPython firmware for microcontrollers compiled by me does not include webrepl and upip modules.
Here where micropython for Linux can be useful. Follow the following transcript to install any modules:
$ micropython -m upip install micropython-upip
Installing to: /home/sharil/.micropython/lib/
Warning: micropython.org SSL certificate is not validated
Installing micropython-upip 1.2.4 from https://micropython.org/pi/upip/upip-1.2.4.tar.gz
I got two new files under the installing directory namely; upip.py and upip_utarfile.py
You can then copy these files to /pyboard in your rshell session. I assumed the modules are already nearly bug-free. I usually copy a mpy file to my microcontrollers.
Use mpy-cross to compile any py file to mpy, for example:
$ mpy-cross upip.py
$ ls -l upip.*
-rw-r--r-- 1 sharil sharil 4320 Oct 10 12:03 upip.mpy
-rw-r--r-- 1 sharil sharil 8205 Oct 10 11:27 upip.py
MicroPython mpy-cross for micropython1-10 will produce a mpy file for micropython1-10 only. Make sure you use mpy-cross for micropython1-11 if your firmware is 1-11-*.
When both py and mpy files exist under /pyboard, for example, mod.py and mod.mpy, micropython will use the mod.py file.
I will upload the latest firmware build to my GitHub repository. The unix, windows micropython and mpy-cross for Linux are here.
Now for something different, programming your brain. I believe I can program my brain to give a better mind. My brain is like my esp32, and my mind is like the latest micropython firmware.
Our brains take in anything, positive or negative. We were told to meditate. Therein lies the problem. A quiet brain invites negative thoughts unless it is trained not to do so.
Here is the deal. I use God Mantra to program my brain for a better mind. Repeat these lines slowly and with conviction during your meditation:
I am everywhere
I am everything
I am the past, I am the future
I am here and now
I am healthy
I am wealthy
I am happy
I am lucky
I am what I am
I am
Comments
Post a Comment