In the module main.py, we see that the program prints a "Hello world" message, defines and runs an initialization function and then executes ipm.
Additional sample code in sample_lib.py illustrates use of the PIC24/dsPIC33 library. The program robot.py gives code to operate a simple robot.
Open the p14p.mcp project file with the Microchip MPLAB IDE then build the project. However, you must have the path to Cygwin's make.exe in your Windows path for this to work.
Alternatively, you can compile from the command line. Start with a clean PyMite tree. Edit src/platform/pic24/Makefile near line 14 to set the part number of your PIC. Then, execute the following at the command prompt, which will build the PyMite VM archive as well as the sample application.
$ cd src/platform/pic24 $ make