Raspberry Pi

Some notes and sources on Raspberry Pi things that I should keep track of.

Basically, I look for these things all the time, and never can find them.

Mechanical Drawings:

Raspberry Pi 3 Raspberry Pi 4

Using LED0 & LED1

echo heartbeat | sudo tee /sys/class/leds/led1/trigger
echo cpu | sudo tee /sys/class/leds/led0/trigger

GPIO from Bash

echo 3 > /sys/class/gpio/export
cat /sys/class/gpio/gpio3/value
echo out > /sys/class/gpio/gpio3/direction
echo 0 > /sys/class/gpio/gpio3/value
echo 1 > /sys/class/gpio/gpio3/value

echo high > /sys/class/gpio/gpio4/direction

Rust

Sources