Fireworks banned? Hold my beer

Thanks to the tinder-like dryness of the grass, the 1st of August fireworks have been banned in some cantons of Switzerland. Fear not fellow patriots, here is a single flickering LED and a weak parp on a Luftrüssel to compensate for your loss.

Despite the underwhelming pyrotechnics, the code contains some useful things. It has:

  • threading to make the candle flicker as the music plays

  • code to play a tune via a little buzzer

  • the logic for a relatively convincing candle flicker

Previous
Previous

When people ask what I did with my life

Next
Next

Don’t call it a comeback