Konubinix' opinionated web of thoughts

Playing With a LED in a Raspberry Pi

Fleeting

LED, raspberry pi, pin layout

see docker Access to Raspberry Pi GPIO Pins

docker run --device /dev/gpiomem --rm -ti konubinix/raspy:0.1.0

See https://gpiozero.readthedocs.io/en/stable/

I plugged the LED

from gpiozero import LED ;  led = LED(4) ; led.on()

led.on()
led.off()