From 69a61ae4dc35901f10a8222e327a0619beaac65b Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 21 Nov 2016 21:38:15 +0000 Subject: [PATCH] Tweak the UMP for the Teensy 3.1/3.2 --- UMP/UMP.ino | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/UMP/UMP.ino b/UMP/UMP.ino index 501737b..3b4b0d6 100644 --- a/UMP/UMP.ino +++ b/UMP/UMP.ino @@ -21,15 +21,17 @@ #endif #if defined(__MK20DX256__) -#define PIN_DSTAR 2 -#define PIN_DMR 3 -#define PIN_YSF 4 -#define PIN_P25 5 +#define PIN_DSTAR 3 +#define PIN_DMR 4 +#define PIN_YSF 5 +#define PIN_P25 6 #define PIN_TX 10 #define PIN_CD 11 #define PIN_LOCKOUT 12 + +#define FLASH_DELAY 200000U #else #define PIN_DSTAR 2 #define PIN_DMR 3 @@ -40,6 +42,8 @@ #define PIN_CD 7 #define PIN_LOCKOUT 8 + +#define FLASH_DELAY 3200U #endif // Use the LOCKOUT function on the UMP @@ -169,13 +173,13 @@ void loop() m_count++; if (m_started) { - if (m_count > 3200U) { + if (m_count > FLASH_DELAY) { digitalWrite(PIN_LED, m_led ? LOW : HIGH); m_led = !m_led; m_count = 0U; } } else { - if (m_count > 32000U) { + if (m_count > (FLASH_DELAY * 3U)) { digitalWrite(PIN_LED, m_led ? LOW : HIGH); m_led = !m_led; m_count = 0U;