Tweak the UMP for the Teensy 3.1/3.2

This commit is contained in:
Jonathan Naylor
2016-11-21 21:38:15 +00:00
parent 1b7fbf7197
commit 69a61ae4dc

View File

@@ -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;