Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
619 stars 200 forks source link

using oled 0.92" display #103

Open blotfi opened 6 years ago

blotfi commented 6 years ago

Hi Thank you for sharing your project Are there a version that uses the small oled 0.92" display? Has anyone fork the project to use it? thanks Lotfi

Edzelf commented 6 years ago

I think the display is too small to be useful for this project.

fredericplante commented 6 years ago

To small unless you scroll the text.

blotfi commented 6 years ago

just to display the radio canal and scroll the content information . it is an I2C interface, and D3/D4 are available What are the routines I have to rewrite ? thanks by the way your radio works great what aout the reset circuit ? can I juste plug the RST to GND via 1k directly without the GPIO diodes

Edzelf commented 6 years ago

Look at the code fragments after "#if defined (USETFT)". Those are the parts that must be changed. Consider to switch to the ESP32 version; it is much better. The RST pin of the VS1053 can be tied to the reset pin of the ESP8266 or via a 1 k resistor to +3.3 Volt. See also https://github.com/Edzelf/Esp-radio/issues/32

blotfi commented 6 years ago

Ok, I share my code that use OLED : check defined ( USEOLED ) // https://github.com/olikraus/u8g2/wiki/u8g2setupcpp U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ D4, /* data=*/ D3, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display

but I disabled the scroll (look in the loop routine) coz it makes the VC1053 buffer to be empty.. take too much ressources :-( perhaps on ESP32 it will work better

here is the code best Esp_radio_oled.zip

blotfi commented 6 years ago

I also switched to ESP32 web radio version, now I can scroll the text and play radio ! ESP32 has a native I2C (not like the ESP8266 with Software emulated I2C) so my OLED is being fetched with data at lightening speed ;-)