this is a summary from my other thread ( the levitron project)
I post here extra in the GCC forum, because if any want, feel free to use it as another demo,
what can do with propgcc and a single cog.
the attachment include:
software with MIT licence