Python for P2?
David Betz
Posts: 14,516
in Propeller 2
Where do we stand with Python on P2? I guess there were two ports, one using p2gcc and the other using Eric's RISC-V JIT interpreter/compiler. Has anyone tried porting Python to FlexC?
Comments
Using the native micropython with Teraterm was great - tabs and cursors work as you'd expect, and there is a good mix of inbuilt code, but it would be great to get it going better with PST
I think micropython generally outputs plain ANSI escape sequences, so the flexgui terminal should support it fine (depending on the underlying console device I suppose; in Linux it works without issue, I haven't tried as much in Windows).
My micropython comes with a USB driver and complete ANSI terminal support for VGA, so you also have the choice of doing everything natively (e.g. it can run the pye python editor on the P2). The VGA driver is fairly generic, it probably wouldn't be hard to port it to Roger's micropython.
Its good you have a VGA driver that works with Pye, Eric. And Roger will likely have DVI covered too, so two good reference incarnations to play with.
The USB driver I take it is GarryJ's ?
Yes, it's GarryJ's. I converted his Spin wrapper to C, which should be usable in any C compiler.