Hey @connornishijima, I am hoping to implement a volume control using PWM control, similar to the way you've done, on ATTiny85. I had planned to start from DrAzzy's tone() but found this. Have you made progress on an implementation on ATTiny*5 which has two timers? I'd be happy to see where you're at and pick up from there, or work with you on it. Otherwise I will start from scratch.
Limitations of my situation:
my board has two "output" pins that drive devices; the boards are manufactured already, and these outputs are on pins PB0 and PB1
these outputs can be configured as either PWM devices (e.g. motor, LED) or TONE devices (e.g. piezo, speaker), so PWM may need to continue working on one output while TONE is used on the other
make extensive use of millis() for timing, but I assume vol.millis() will work fine, though it might mean modifying all other libraries that use millis() (e.g., SoftwareSerial)
Hey @connornishijima, I am hoping to implement a volume control using PWM control, similar to the way you've done, on ATTiny85. I had planned to start from DrAzzy's
tone()
but found this. Have you made progress on an implementation on ATTiny*5 which has two timers? I'd be happy to see where you're at and pick up from there, or work with you on it. Otherwise I will start from scratch.Limitations of my situation:
millis()
for timing, but I assumevol.millis()
will work fine, though it might mean modifying all other libraries that usemillis()
(e.g., SoftwareSerial)