1
0
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:
Stuart Longland 2018-09-22 17:09:13 +10:00
parent 64731b8a0d
commit a83da25fa1
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -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 */