How to RPi.GPIO library to function with Ignition Maker Edition

I got a proof of concept of integration with the DIOZero Java module working on a Raspberry Pi4B sitting on my desk; I’m running pigpiod on the Pi, and then use an introduced scripting function to create the connection:

The script running on that toggle switch is just this:

	led = system.util.globals.setdefault("LED", system.gpio.LED(system.util.globals.setdefault("factory", system.gpio.factory()), 17))
	led.on() if currentValue.value else led.off() 
2 Likes