How to power an Attiny from AA batteries?
Constant LED brightness means constant current, and constant current means a current limiter.







simulate this circuit &ndash; Schematic created using CircuitLab

Select R2 as (VD2 + VD3 - VbeQ1)/ID1. Don't be afraid to use a current slightly lower than the spec (i.e. 3 to 6mA).