mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-20 17:57:11 +02:00
basic implementation of HMS/HMT inverters
This commit is contained in:
parent
b6a41506b6
commit
c56c785a1f
13 changed files with 800 additions and 19 deletions
|
@ -15,13 +15,18 @@ IRAM_ATTR void handleIntr(void) {
|
|||
myApp.handleIntr();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
IRAM_ATTR void handleHmsIntr(void) {
|
||||
myApp.handleHmsIntr();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void setup() {
|
||||
myApp.setup();
|
||||
|
||||
// TODO: move to HmRadio
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getIrqPin()), handleIntr, FALLING);
|
||||
attachInterrupt(digitalPinToInterrupt(myApp.getHmsIrqPin()), handleHmsIntr, RISING);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue