diff options
| author | manuel <manuel@mausz.at> | 2021-03-03 20:45:01 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2021-03-03 20:45:01 +0100 |
| commit | 812c9a230aabb45cb7cf6f8a2402c758ade079c3 (patch) | |
| tree | 9ae571ebdd3c0bfe11ef5dd8577622ef8f080cf4 /martin/door/src | |
| parent | 92ea621db67b45225e3ded586dd996e79ce20df0 (diff) | |
| download | arduino-812c9a230aabb45cb7cf6f8a2402c758ade079c3.tar.gz arduino-812c9a230aabb45cb7cf6f8a2402c758ade079c3.tar.bz2 arduino-812c9a230aabb45cb7cf6f8a2402c758ade079c3.zip | |
Change pulsewidth
Diffstat (limited to 'martin/door/src')
| -rw-r--r-- | martin/door/src/hcs200.cpp | 4 | ||||
| -rw-r--r-- | martin/door/src/main.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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 | ||
| 175 | inline void HCS200_Keycode::send(bool value, std::function<void(int)> setOutput) | 175 | inline 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); |
