Control P2 Pins via Browser
Rayman
Posts: 14,640
in Propeller 2
This is first step towards a browser based scope for P2.
Think now have handle on web serial API...
This web page shows you status of four P2 pins and lets you control them via Browser, once connected.
First, download the .spin2 file linked to on the page and FLASH it to your P2.
Then, hit "connect" button to see pin status and enable the control buttons.
It should looks like the attached pic when connected.
Comments
The P2 serial boot protocol is quite simple, you can probably just load the binary straight through the browser. We ought to try getting flexspin to compile as WebAssembly, then one could tweak the code on the fly, too.
There are some web based IDEs out there, so that might be possible...
I’ve only tried this with edge and windows.
But supposedly works with Mac and Linux too…