Software › Soft-PWM fade (onboard LED)

Soft-PWM fade (onboard LED)

firmware Open · freely redistributable

An original public-domain ATtiny85 program. It software-PWMs the onboard LED (PB1): for each brightness level it drives the pin high for N counts and low for 255-N counts, then walks the level up 0-to-255 and back down forever, so the LED "breathes". Pure bit-banged PWM — no timer output-compare — which the panel renders as a smooth fade by integrating the pin duty cycle each frame.

Download ↓ Original source ↗

Format: Compiled ATtiny85 flash image (16-bit words, base64)  ·  By: emulators.org  ·  Licence: Public domain

Runs on