07-05-2024, 08:40 PM
SSD1306 I2C display. Connected to pin 5 and 3 of the GPIO connector of the Raspberry Pi Zero 2W. MPD Oled program. It has commands "sudo systemctl stop mpd_oled" and "sudo systemctl start mpd_oled" to turn off and on the MPD Oled. When turned off, the display goes off. I am using in GPIO buttons two buttons. One turns off, the other turns on. It is not convenient and not rational. I would like to use only one button for on/off.