Loading include/object/ptalog.h +3 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,8 @@ class PTALog { #ifdef PTALOG_GPIO_BAR void startTransition(char const *code, uint8_t code_length) { // TODO increase sleep duration: quiet zone must be at least 10x long // (100ms for 10ms per bar, oder 50ms for 5ms per bar) arch.sleep_ms(20); for (uint8_t byte = 0; byte < code_length; byte++) { for (uint16_t mask = 0x01; mask <= 0x80; mask <<= 1) { Loading @@ -105,6 +107,7 @@ class PTALog { } } gpio.write(sync_pin, 0); // TODO increase sleep duration (see above) arch.sleep_ms(20); } #else Loading Loading
include/object/ptalog.h +3 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,8 @@ class PTALog { #ifdef PTALOG_GPIO_BAR void startTransition(char const *code, uint8_t code_length) { // TODO increase sleep duration: quiet zone must be at least 10x long // (100ms for 10ms per bar, oder 50ms for 5ms per bar) arch.sleep_ms(20); for (uint8_t byte = 0; byte < code_length; byte++) { for (uint16_t mask = 0x01; mask <= 0x80; mask <<= 1) { Loading @@ -105,6 +107,7 @@ class PTALog { } } gpio.write(sync_pin, 0); // TODO increase sleep duration (see above) arch.sleep_ms(20); } #else Loading