Atmel-based bicycle lights