switch to ESP-IDF
This commit is contained in:
@@ -15,10 +15,11 @@
|
||||
namespace esphome {
|
||||
namespace hauslane {
|
||||
|
||||
static const unsigned char MSG_START[] = {0x08, 0x08, 0x08, 0xfe, 0xc0};
|
||||
static const unsigned char MSG_END[] = {0xc0, 0xce, 0xce, 0xce};
|
||||
static const uint8_t START_LEN=5;
|
||||
static const uint8_t END_LEN=4;
|
||||
static const unsigned char MSG_START[] = {0x08, 0x08, 0x08, 0xfe, 0x00, 0xc0};
|
||||
static const unsigned char MSG_END[] = {0xc0, 0xce, 0xce, 0xce, 0xc6};
|
||||
static const uint8_t START_LEN=6;
|
||||
static const uint8_t END_LEN=5;
|
||||
static const size_t MAX_RX=30;
|
||||
static const int DELAY=250; // how long to press/release buttons in ms
|
||||
|
||||
class Hauslane : public Component, public uart::UARTDevice, public api::CustomAPIDevice {
|
||||
|
||||
Reference in New Issue
Block a user