The idea of this mini project is to make two LEDs blink in a predefined pattern that looks similar to an exponential function given by an RC circuit, creating a smooth fading effect.
This is the code running on the SATtiny. After some measurements, it has been observed that the current consumption remains around 4uA when sleeping. During the day, when there is enough light to load the super cap, the Attiny wakes up every 8 seconds to checkout if PB3 is still high. In absence of light, PB3 sees a logical 0. At this point, the wake up interval changes to 4 seconds.
ย
Have fun!