This is just a really quick demo code for the bike light that I designed. This code has a pretty neat sweep function that's made with the millis() -function, so if you want to use it you are free to do so.
If you need help figuring out how the code works, feel free to contact me! https://www.teukkaniikka.fi/contact/