Re-Map SPI-OUTPUT-GPIOS
Posted: Fri Sep 10, 2021 8:44 am
Hello,
I just registered to this forum because I need some Help while using the ESP32 with the Arduino IDE.. I have already gained some experience and am already addressing the registers directly to not use any Arduino functions (e.g. digitalWrite).
But now I need your help to solve a somewhat complicated problem.
I have a LED strip which is divided into 7 sections. I want to fill these sections with information one after the other. So I don't need 7 SPI channels, I just want to switch one channel between several GPIOs.
I thought about it as follows:
- The first segment is filled with the data
- SPI output is put on next pin
- The second segment is filled with the data
...
I need only 1xCLK, because all LEDs are controlled one after the other, so I shouldn't get any problems with the number of pins.
I have already found a few sources about the GPIO matrix, but I haven't found any example code that shows me how to use it.
I hope you can help me a little bit, if there is still some information missing, please send me a short message.
Best regards!
I just registered to this forum because I need some Help while using the ESP32 with the Arduino IDE.. I have already gained some experience and am already addressing the registers directly to not use any Arduino functions (e.g. digitalWrite).
But now I need your help to solve a somewhat complicated problem.
I have a LED strip which is divided into 7 sections. I want to fill these sections with information one after the other. So I don't need 7 SPI channels, I just want to switch one channel between several GPIOs.
I thought about it as follows:
- The first segment is filled with the data
- SPI output is put on next pin
- The second segment is filled with the data
...
I need only 1xCLK, because all LEDs are controlled one after the other, so I shouldn't get any problems with the number of pins.
I have already found a few sources about the GPIO matrix, but I haven't found any example code that shows me how to use it.
I hope you can help me a little bit, if there is still some information missing, please send me a short message.
Best regards!