Shop OBEX P1 Docs P2 Docs Learn Events
Control P2 Pins via Browser — Parallax Forums

Control P2 Pins via Browser

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.

760 x 818 - 91K

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.

  • RaymanRayman Posts: 14,640

    There are some web based IDEs out there, so that might be possible...

  • RaymanRayman Posts: 14,640

    I’ve only tried this with edge and windows.

    But supposedly works with Mac and Linux too…

Sign In or Register to comment.