Initially this code was tested on a mac

Ensure that you have a working python3 installation

go to a terminal window

type python3

You can install brew and do a

brew install python3 - if it is not installed

The following files are necessary

forth_vm.py

pf.py

Extn.py

0.txt

These files need to be in the same folder.

You can click on the files in the PyForth notion page(text) and save them as appropriate

pf.py needs to be made executable chmod a+x in the terminal

to start the forth engine type ./pf.py You should get this …

image.png

Once this is running on your mac then you can use thonny to transfer the files to your chosen microcontroller.

After copy the 4 files to the target machine, to start forth, then type within repl

import pf

pf.main()

With circuit python, you can add

import pf;

pf.main()

in the code.py file and forth will automatically run when you do a control d.

Any questions / feedback / money (LOL)