A little tool to help you know your Pi's current temperature.
Support All raspberry Pi, but only test on Raspberry Pi 4.
Just need a ssd1306 drive OLED using SPI 4-wire protocol.
This tools use Raspberry Pi's SPI1.
- Vcc - 3.3V
- GND - GND
- D0 - SCLK
- D1 - MOSI
- RES - 5 (BCM)
- DC - 6 (BCM)
- CS - 13 (BCM)
- Vcc - 17
- GND - 25
- D0 - 23
- D1 - 19
- RES - 5
- DC - 6
- CS - 13
Just download latest release .deb
package.
And run these commands:
sudo systemctl enable pi-temp
sudo systemctl start pi-temp
clone this repo, and run
cargo build --release
and run ./target/release/pi-temp
with sudo
.
or you can install cargo-deb
and build .deb
package:
cargo install cargo-deb
cargo deb