I am trying to develop some plans for my primary school code club to use the Explorer HAT Pro with Scratch. At this point I am using the Scratch 1.4 as installed with Raspbian Jessie, as this has support for this HAT ( https://www.raspberrypi.org/documentati ... /README.md
I can get all the LEDs, motors and outputs working with broadcast messages (once I turn on the GPIO server). However using the alternative method setting variables, I can only get the LEDs & motors working, plus I can read the digital inputs (I have not tried the analogue inputs yet). I cannot get the outputs to work using variables. I have tried defining variables output1, output2, output3, output4 and setting them to 1, on, & high. None of these turns on the output (they work fine when I broadcast 'output1on' or if I broadcast 'join output1 on', but I cannot get the output1 variable to work. I wanted to use variables as it leads on to other coding principles where as broadcast messages is a bit more cryptic.
I have searched online for examples, but apart from the link above I cannot find any trace of anyone using the Raspbian Scratch distribution with variables to set the Explorer HAT Pro outputs. In fact I cannot find anyone using the Explorer HAT Pro with scratch who has posted anything at all, apart from the information about Scratch GPIO ( http://simplesi.net/scratchgpio/scratch ... rypi-gpio/
), but I was trying to see if I could get a vanilla install of Scratch working before I install that.