Great video, love it. FYI: in C++ can use std::bitset to handle bit arrays efficient. Another easy way is just to create a C macro like BITSET, BITGET to do the work. Todays CPUs have also a 64 or 128 bit shift instructions which would allow to quickly produce static bit patterns. Another easy version is to use an SPI DMA driven output of bits which works somehow in realtime. Warm regards, Helmut
Thanks for the compliments. And it's great to know there are still new things to learn in programming to do this more efficiently (I had no doubt about that ;-) I will keep them in mind if I venture into something similar!
Great video
Great video, love it.
FYI: in C++ can use std::bitset to handle bit arrays efficient. Another easy way is just to create a C macro like BITSET, BITGET to do the work. Todays CPUs have also a 64 or 128 bit shift instructions which would allow to quickly produce static bit patterns.
Another easy version is to use an SPI DMA driven output of bits which works somehow in realtime.
Warm regards, Helmut
Thanks for the compliments. And it's great to know there are still new things to learn in programming to do this more efficiently (I had no doubt about that ;-) I will keep them in mind if I venture into something similar!