Reading values from a callable Python script

ScratchGPIO8 can run external scripts e.g

broadcast python

to run

Now this is great when you want to control something but lets say you decide you want to read an IR Remote and you’ve got a python lib that can read the remote keypresses.

How do we get that back into Scratch?

Now I can read any sort of text file – xml,csv,json but what would pythonistas prefer

Any values would have to be returned as pairs – the name you want to use in Scratch and its value

What do you think?


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *