mirror of
https://github.com/sjlongland/atinysynth.git
synced 2025-09-13 10:03:15 +10:00
attiny861: Increase detection delay.
Increase the delay for detecting the buttons to account for power supplies that may have a slower rise time. Otherwise the MCU thinks there's no buttons present and ignores all inputs.
This commit is contained in:
parent
64731b8a0d
commit
a83da25fa1
@ -129,7 +129,7 @@ int main(void) {
|
||||
PORTA = 0;
|
||||
|
||||
/* Determine which buttons are in use: they are pulled high. */
|
||||
_delay_ms(1);
|
||||
_delay_ms(100);
|
||||
button_enable = PINA;
|
||||
|
||||
/* Timer 1 configuration for PWM */
|
||||
|
Loading…
Reference in New Issue
Block a user