2022-05-06 08:48:38 +00:00
|
|
|
# raspi demo for OLED ssd1351 display
|
2021-07-24 19:46:52 +00:00
|
|
|
|
2022-05-06 09:03:11 +00:00
|
|
|
https://www.waveshare.com/wiki/1.5inch_RGB_OLED_Module
|
|
|
|
|
2021-07-24 19:46:52 +00:00
|
|
|
## Quick start
|
|
|
|
|
2022-05-06 08:48:38 +00:00
|
|
|
```bash
|
2021-07-24 19:46:52 +00:00
|
|
|
> nix-shell
|
|
|
|
> rustup target add arm-unknown-linux-musleabihf
|
|
|
|
> cargo build --release --target arm-unknown-linux-musleabihf
|
2022-05-06 08:48:38 +00:00
|
|
|
> scp target/arm-unknown-linux-musleabihf/release/{display_all,display_off,refresh_json,take_measurement} 'pi@raspberrypi:~'
|
2022-05-06 08:51:30 +00:00
|
|
|
> # on the Pi, create sensors.db and events.json
|
2022-05-06 08:48:38 +00:00
|
|
|
> patchelf --set-interpreter /lib/ld-linux-armhf.so.3 display_all
|
|
|
|
> ./display_off on
|
|
|
|
> ./display_all sensors.db events.json temps
|
|
|
|
```
|
2021-07-24 19:46:52 +00:00
|
|
|
|
|
|
|
## Example
|
|
|
|
|
2022-05-06 09:03:11 +00:00
|
|
|
![temperature graph](./images/temps.png)
|
|
|
|
|
|
|
|
![events](./images/events.png)
|
2021-07-24 19:46:52 +00:00
|
|
|
|
2022-05-06 09:03:11 +00:00
|
|
|
(the second blue text is brighter on the OLED)
|