Hi all,
I've been working on a simple python 'compiler' targetting the AVR (inspired by Pyastra, the equivalent PIC program).
The (rather bare) website is here:
The code is fairly simple (though my tarballing skills leave much to be desired), and produces surprisingly clean assembly (optimal in many simple cases), though it only attempts a very bare subset of python, or rather some-simple-register-poking-programming-language with the same syntax as python.
I hope to implement functions and proper variable scope in the next few days, as well as a simple IDE to make it useful for teaching kids how to program microcontrollers. A high-level simulator should be possible in the python interpreter itself, by overriding a few __setitem__ calls, which would then display the port state and allow interrogation with a simple GUI.
All of the interesting code resides in the 'avrpy' module, bundled are a load of half-finished python experiments, and some simple examples.
I'd appreciate feedback and suggestions, I hope to get this usable by the end of March for programming mini uC-controlled robots!
Jonny Barker