Swift - RGB control
October 20, 2019
I really like the cross between hardware and software, so I used my experience in embedded systems and Swift development to build bluetooth controlled RGB light scrip. I used HM-10 bluetooth module (same one that I used in similar Arduino project), for the light control I imagined an color wheel and some slider for brightness. It worked great in theory, unfortunately simple RGB LED did not represent the colours correctly. From hardware site I used STM-32 dev board - Nucleo that I have received on my summer training. Here the hardest part was to build library that would fast and reliable read bluetooth messages from serial ring-buffer. I wanted the app to be responsible, so the telegrams could be send really often and µC had to parse them correctly every time. I used this library in other project so my work did not go to waste!