From 812c9a230aabb45cb7cf6f8a2402c758ade079c3 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 3 Mar 2021 20:45:01 +0100 Subject: Change pulsewidth --- martin/door/platformio.ini | 2 +- martin/door/src/hcs200.cpp | 4 ++-- martin/door/src/main.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'martin/door') diff --git a/martin/door/platformio.ini b/martin/door/platformio.ini index 1a3b624..8c696d4 100644 --- a/martin/door/platformio.ini +++ b/martin/door/platformio.ini @@ -12,7 +12,7 @@ default_envs = d1_mini [common_env_data] -lib_deps = +lib_deps = WiFiManager [env:nodemcuv2] platform = espressif8266 diff --git a/martin/door/src/hcs200.cpp b/martin/door/src/hcs200.cpp index d7e914f..eb69091 100644 --- a/martin/door/src/hcs200.cpp +++ b/martin/door/src/hcs200.cpp @@ -166,11 +166,11 @@ void HCS200_Keycode::print(Print &stream) } // pulse width according to chip datasheet -//#define PULSE_WIDTH 440 +#define PULSE_WIDTH 400 // pulse width according to rtl_433 implementation // run width: rtl_433 -R 131 -#define PULSE_WIDTH 370 +//#define PULSE_WIDTH 370 inline void HCS200_Keycode::send(bool value, std::function setOutput) { diff --git a/martin/door/src/main.cpp b/martin/door/src/main.cpp index 223180e..da569b0 100644 --- a/martin/door/src/main.cpp +++ b/martin/door/src/main.cpp @@ -252,7 +252,7 @@ void serial_door_open(Print &stream) #endif /* send twice */ - for (unsigned int i = 0; i < 1; i++) { + for (unsigned int i = 0; i < 10; i++) { keycode.send([&](int value) { #ifdef RADIO_CC1101 radio.setGDO0(value); -- cgit v1.2.3