summaryrefslogtreecommitdiffstats
path: root/martin/door
diff options
context:
space:
mode:
Diffstat (limited to 'martin/door')
-rw-r--r--martin/door/platformio.ini2
-rw-r--r--martin/door/src/hcs200.cpp4
-rw-r--r--martin/door/src/main.cpp2
3 files changed, 4 insertions, 4 deletions
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 @@
12default_envs = d1_mini 12default_envs = d1_mini
13 13
14[common_env_data] 14[common_env_data]
15lib_deps = 15lib_deps = WiFiManager
16 16
17[env:nodemcuv2] 17[env:nodemcuv2]
18platform = espressif8266 18platform = 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)
166} 166}
167 167
168// pulse width according to chip datasheet 168// pulse width according to chip datasheet
169//#define PULSE_WIDTH 440 169#define PULSE_WIDTH 400
170 170
171// pulse width according to rtl_433 implementation 171// pulse width according to rtl_433 implementation
172// run width: rtl_433 -R 131 172// run width: rtl_433 -R 131
173#define PULSE_WIDTH 370 173//#define PULSE_WIDTH 370
174 174
175inline void HCS200_Keycode::send(bool value, std::function<void(int)> setOutput) 175inline void HCS200_Keycode::send(bool value, std::function<void(int)> setOutput)
176{ 176{
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)
252#endif 252#endif
253 253
254 /* send twice */ 254 /* send twice */
255 for (unsigned int i = 0; i < 1; i++) { 255 for (unsigned int i = 0; i < 10; i++) {
256 keycode.send([&](int value) { 256 keycode.send([&](int value) {
257 #ifdef RADIO_CC1101 257 #ifdef RADIO_CC1101
258 radio.setGDO0(value); 258 radio.setGDO0(value);