Skip to content

Commit

Permalink
Tweak the UMP for the Teensy 3.1/3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Nov 21, 2016
1 parent 1b7fbf7 commit 69a61ae
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions UMP/UMP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,6 +42,8 @@
#define PIN_CD 7

#define PIN_LOCKOUT 8

#define FLASH_DELAY 3200U
#endif

// Use the LOCKOUT function on the UMP
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 69a61ae

Please sign in to comment.