TobleMiner / esp_i2s_parallel

A simple parallel i2s driver for the esp32
MIT License
38 stars 8 forks source link

I2S1 true 8bit mode #1

Open xenpac opened 3 years ago

xenpac commented 3 years ago

Hi TobleMiner,

You claim that I2S1 can do true 8bit parallel mode. For output that is i guess.

which settings are used to enable 8bit mode?

i am actually trying the opposite, 8bit input but yeah...

martinberlin commented 3 years ago

Hi @xenpac for 8-bit mode in I2S1 you can check what is done on 8 data bus parallel epaper driver: https://github.com/vroland/epdiy/blob/master/src/epd_driver/i2s_data_bus.c

Valentin uses that mode to communicate with Kindle like eink paper displays.

What I would be really interested to know if there is a way to simulate 8 bit mode using I2S0 since I'm trying to make an ESP32S2 version of that component and the chip has only I2S0.

oshere1111 commented 2 years ago

hay @martinberlin do you maybe have some example on how to use this library? how to setup and send data from array to the pins directly

martinberlin commented 2 years ago

Hi @oshere1111 I recommend you to join epdiy.slack.com (Send me an email to my github profile email for invitation) You actually need an epdiy board to try it. It won't work just with a normal esp32-wrover. I mean, unless you want to try it without display. Since this epapers need special high voltages (+15 +22 -20 -15 V + VCOM) and it won't work without that. There is one commercial board at sale that a Martin a member of EPDiy made and it's for sale in Tindie, just search for "Inkster" Best regards

oshere1111 commented 2 years ago

i dont need display, just the basic sending data over several lines at the same time at high rate

martinberlin commented 2 years ago

Ok then you will have to compile epdiy in a ESP32-WROVER and skip the power lines initialization. Then build one example like the dragon example or the grayscale test. Keep in mind it just needs PSRAM enabled since there is where the framebuffer is stored.