mirror of
https://github.com/sjlongland/atinysynth.git
synced 2025-09-13 10:03:15 +10:00
attiny861 port: Clear button hit/release events at power-on.
This prevents all the notes being played all at once on power-on.
This commit is contained in:
parent
e75d75d20b
commit
cf587e3fd8
@ -198,7 +198,14 @@ int main(void) {
|
||||
synth.enable = 0x0;
|
||||
synth.mute = 0x0;
|
||||
|
||||
/* Turn on interrupts */
|
||||
sei();
|
||||
|
||||
/* Reset button states */
|
||||
button_hit = 0;
|
||||
button_release = 0;
|
||||
|
||||
/* Enter main loop */
|
||||
while(1) {
|
||||
/* Check the button states */
|
||||
uint8_t b = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user