I use PSU control to turn off my printer (Ender-3 v2) after a print job so that the printer is not on unnecessarily long, without anything to print.
Now I would also like to switch the LED lighting on and off in this way.
Is it possible to switch two GPIOs on the raspberry pi via OctoPrint?
GPIO27 to switch the printer. (G-Code M80 in, M81 out)
GPIO17 to switch the LEDs?