packager icon indicating copy to clipboard operation
packager copied to clipboard

GPIO Extension

Open btdkhz opened this issue 1 year ago • 3 comments

I'm having trouble converting a scratch project with the Raspberry Pi extention. It throws an error about the extention on preview and after conversion. I've tried html, ARM and straight linux but all through the error. Any help would be much appreciated. Kindest regards Brian

btdkhz avatar Nov 19 '24 00:11 btdkhz

We don't support that extension, and I believe unfortunately it is not open source so we would have to rewrite it

GarboMuffin avatar Nov 19 '24 21:11 GarboMuffin

We don't support that extension, and I believe unfortunately it is not open source so we would have to rewrite it

The extension code is here: https://github.com/RaspberryPiFoundation/scratch-desktop/blob/develop/raspberry-pi/extensions/scratch3_pigpio/index.js (it is written in a weird way so you may have to rewrite it anyway)

someCatInTheWorld avatar Jun 09 '25 01:06 someCatInTheWorld

thanks for checking

seems like the important parts for actually talking to the GPIO is in https://github.com/RaspberryPiFoundation/scratch-desktop/tree/develop/cpp

finding a secure way to plumb renderer code to that native code seems a bit annoying but doable

GarboMuffin avatar Jun 09 '25 02:06 GarboMuffin