Commit Graph

5 Commits

Author SHA1 Message Date
Mr.Blinky 315c3c45e9
update ATMlib
Optimized Assembly code saving more bytes and saving a few cycles
Moved and refactored assemby from ATMlib.h code to ATMlib.cpp
fix muteChannel() and unMuteChannel() so (un)mutes channel properly
Added C++ equivalent ISR code
2020-05-13 15:10:34 +02:00
Mr.Blinky 64441b810c
update ATMlib 2019-07-22 22:41:31 +02:00
Mr.Blinky 0de4b41588
Fixed interrupt glitch in ATMlib.play() p2
Disabled timer/counter 4 overflow interrupt at beginning of play() to prevent bad sounds from being played when song is changed while playing
2018-09-21 00:32:21 +02:00
Mr.Blinky 02aa13d078
Fixed interrupt glitch in ATMlib.play()
Timer/counter 4 is enabled on Arduino init() and a Timer/counter 4 overflow may happen right after the timer/counter 4 interrupt is enabled. When this happens the channels have not been initialized yet causing random noise/sounds being played.
This has been fixed by moving the interrupt enable after the channels have been initialized.
2018-09-21 00:23:05 +02:00
Mr.Blinky 71b27ac33c
added missing files 2018-09-18 18:19:10 +02:00