=> MAGYAR => ENGLISH
Oled Volumio-ra (Raspberry Pi) verzió 1.33 béta (2023-04-19)
Ez a kijelző (SSD1305 vezérlős) nincs alapból támogatva a Volumio által.
Ez a program a http://volumio.local/api/v1/getState főbb adatait megjeleníti a kijelzőn (állapot, idő, hangerő, előadó, szám címe, stb.).
Az általam írt "oled.c" programkód szabadon felhasználható, mely a http://www.waveshare.com/w/upload/c/c5/2.23inch-OLED-HAT-Code.7z demo alapján készült.
Kijelző: Waveshare 2.23" OLED HAT, 128 x 32 pixel
https://www.waveshare.com/wiki/2.23inch_OLED_HAT
C programkód az alábbi library-k felhasználásával:
http://www.airspayce.com/mikem/bcm2835/
=> Letölthető program és C forráskód: oled.zip
Tudnivalók röviden:
- 1.33 béta verzió
- SPI-t be kell kapcsolni (sudo raspi-config)
- a program C nyelven van (nem C++ !)
- telepíteni kell a bcm2835-1.69.tar.gz
- telepíteni kell a libcurl-t
- (C fordításhoz telepíteni a GCC-t)
- futtatás mindig sudo-val: sudo ./oled
- be kell rakni a systemd-be az automatikus indításhoz:
[Unit]
Description=oled service
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/sudo /home/volumio/oled
Restart=always
[Install]
WantedBy=multi-user.target
- Karakter tervező a ssd1305.h -hoz: Oledchar
--------------------------------------------------------------------------------------------------------------
Oled for Volumio (Raspberry Pi) ver 1.33 beta (04-19-2023)
This display (SSD1305 controller) is not supported by default by Volumio.
This program displays the main data of http://volumio.local/api/v1/getState (status, duration/seek, volume, artist, title, etc.).
The "oled.c" program code I wrote is free to use based on the http://www.waveshare.com/w/upload/c/c5/2.23inch-OLED-HAT-Code.7z demo.
Display type: Waveshare 2.23" OLED HAT, 128 x 32 pixel
https://www.waveshare.com/wiki/2.23inch_OLED_HAT
C program code using the following libraries:
http://www.airspayce.com/mikem/bcm2835/
=> Downloadable program and C source code: oled.zip
Brief information:
- ver 1.33 beta
- SPI must be enabled (sudo raspi-config)
- the program is in C language (not C ++!)
- bcm2835-1.69.tar.gz must be installed
- libcurl must be installed
- (install GCC for C compiler)
- always run with sudo: sudo ./oled
- must be loaded into systemd for automatic startup:
[Unit]
Description=oled service
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/sudo /home/volumio/oled
Restart=always
[Install]
WantedBy=multi-user.target
- Character designer for ssd1305.h: Oledchar