Hi, just posting some progress on the current control project, I've gotten all my functionality into the attiny as far as blinking, fade in-fade out, strobe, etc. some fun stuff, I was working on figuring out how to digitally do what I was doing with the op amps and RC's in software and decided to write a base 2 running average algorithm, the goal being speed, code below, feel free to tear it apart haha. I haven't written it into a class yet, just wrote it in the main arduino loop to proof...
current control with attiny45
current control with attiny45