2018-03-20 23:56:42 +01:00
|
|
|
#include "knx_facade.h"
|
|
|
|
|
2019-05-27 21:41:04 +02:00
|
|
|
#include "knx/bits.h"
|
|
|
|
|
2018-11-07 00:32:36 +01:00
|
|
|
#ifdef ARDUINO_ARCH_SAMD
|
2019-08-22 22:57:35 +02:00
|
|
|
KnxFacade<SamdPlatform, Bau07B0> knx;
|
2019-07-09 21:36:32 +02:00
|
|
|
#define ICACHE_RAM_ATTR
|
2019-05-27 21:41:04 +02:00
|
|
|
#elif ARDUINO_ARCH_ESP8266
|
2019-08-22 22:57:35 +02:00
|
|
|
KnxFacade<EspPlatform, Bau57B0> knx;
|
2019-08-26 13:45:14 +02:00
|
|
|
#elif ARDUINO_ARCH_ESP32
|
2019-09-01 20:49:28 +02:00
|
|
|
//KnxFacade<Esp32Platform, Bau57B0> knx;
|
2019-08-26 13:45:14 +02:00
|
|
|
KnxFacade<Esp32Platform, Bau57B0> knx;
|
2019-08-22 22:57:35 +02:00
|
|
|
#elif __linux__
|
|
|
|
#define ICACHE_RAM_ATTR
|
2018-11-07 00:32:36 +01:00
|
|
|
#endif
|
2018-03-20 23:56:42 +01:00
|
|
|
|
2019-09-01 20:49:28 +02:00
|
|
|
ICACHE_RAM_ATTR void buttonUp()
|
2019-05-13 22:31:45 +02:00
|
|
|
{
|
2019-08-22 22:57:35 +02:00
|
|
|
#ifndef __linux__
|
|
|
|
knx._toogleProgMode = true;
|
2019-08-26 13:45:14 +02:00
|
|
|
#endif
|
2019-08-22 22:57:35 +02:00
|
|
|
}
|