Working LED example
parent
2ec5b1d97e
commit
a7a9598bc8
@ -0,0 +1,5 @@
|
|||||||
|
# LED GPIO
|
||||||
|
|
||||||
|
- The long end of an LED is the Anode (+) and will need a 220ohm-ish resistor in line with the GPIO pin since it will power it via toggling a 3.3v voltage.
|
||||||
|
- Hook up the Cathode (-), the shorter end, to ground.
|
||||||
|
- GPIO17 is the 11th pin on the raspberry pi header.
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
# Access to the memory-mapped GPIO
|
||||||
|
SUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"
|
||||||
|
|
||||||
|
# Access to the gpiochip character devices (periph.io uses these)
|
||||||
|
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="gpio", MODE="0660"
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue