mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-10 02:20:07 +01:00
Tweak the UMP for the Teensy 3.1/3.2
This commit is contained in:
parent
1b7fbf7197
commit
69a61ae4dc
16
UMP/UMP.ino
16
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue