From 87e60ac8c3e646bbaee54d0699a8d46278ab5711 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Nov 2019 13:42:31 +0100 Subject: ptalog: note that the current code may violate the Code128 quiet zone --- include/object/ptalog.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/object/ptalog.h b/include/object/ptalog.h index c5caa98..bdd0a33 100644 --- a/include/object/ptalog.h +++ b/include/object/ptalog.h @@ -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) { @@ -105,6 +107,7 @@ class PTALog { } } gpio.write(sync_pin, 0); + // TODO increase sleep duration (see above) arch.sleep_ms(20); } #else -- cgit v1.2.3