summaryrefslogtreecommitdiff
path: root/multiplexer.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-06 22:48:56 +0100
committerErich Eckner <git@eckner.net>2018-11-06 22:48:56 +0100
commit68f3d76a5f48fb87f6c6e31980269444bad1069b (patch)
treebbff614912d03d8708c3856e04d131efe5cf7e9e /multiplexer.c
parent1f1da4547ac995806927315a9dc0a37f9a284f7b (diff)
downloadanzeige-68f3d76a5f48fb87f6c6e31980269444bad1069b.tar.xz
multiplexer: wait_tpic_settle_time() in turn_off_display(), too
Diffstat (limited to 'multiplexer.c')
-rw-r--r--multiplexer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/multiplexer.c b/multiplexer.c
index 46767ea..8483c2d 100644
--- a/multiplexer.c
+++ b/multiplexer.c
@@ -275,10 +275,14 @@ void turn_off_display()
GPIO_SET = 1<<GATE_PIN; // Licht aus
GPIO_CLR = 1<<SER_DAT_PIN;
for (int i=0; i<48; i++) {
+ wait_tpic_settle_time
GPIO_CLR = 1<<SER_CLK_PIN;
+ wait_tpic_settle_time
GPIO_SET = 1<<SER_CLK_PIN;
}
+ wait_tpic_settle_time
GPIO_CLR = 1<<PAR_CLK_PIN;
+ wait_tpic_settle_time
GPIO_SET = 1<<PAR_CLK_PIN;
#endif // !SKIP_GPIO
} // turn_off_display