This is a shell script for frozen your own module into bbcmicropython in a easy way. You can follow the steps below to create a short path.
- make sure you use python3.6.6, it will get you pass the dependency problem for installation of yotta
git clone https://github.com/pyeprog/frozen-bbc-micropython.git --recursive
- make a bin directory in your home path and move this project there.
- mkdir ~/bin
- mv ./frozen-bbc-micropython ~/bin
- add ~/bin into the PATH varaible
- If you have a .profile file in your home path, then add one more line at the bottom of it.
PATH="$PATH:~/bin"
- If you don't have a .profile file there, then just create a .profile and put
PATH="$PATH:~/bin"
into it. - If you find something like
export PATH="$HOME/bin:PATH"
, then don't bother to chang anything.
- If you have a .profile file in your home path, then add one more line at the bottom of it.
- add a link to compile.sh for ease.
ln ~/bin/frozen-bbc-micropython/compile.sh ~/bin/compile
- follow those steps in bbcmicropython to install all the compiling tools.
And now you are all set.
- Put your python file into a empty directory and name the directory with
your_dir_name
. The name of the file is important, which is exactly the module name when you use it in micropython. compile your_dir_name
- You can find a new directory named
compiled_hex_files
in your ~/Downloads path. All the compiled hex file are there and named with the time you compile it.