arduino
arduino copied to clipboard
move Serial.println out of ISR because Serial is slow
also reduces code duplication by 50% lol