summaryrefslogtreecommitdiff
path: root/multiplexer.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-05 13:39:36 +0100
committerErich Eckner <git@eckner.net>2018-11-05 13:39:36 +0100
commitc6454367c84a99a4b17b69117f6eb803da610e72 (patch)
treee5deb68905529bafd4e8d2c93f6f976cda4551bf /multiplexer.c
parent93fa65bd29cf735f680ed112c9b0a6ee012f21cb (diff)
downloadanzeige-c6454367c84a99a4b17b69117f6eb803da610e72.tar.xz
multiplexer: wait_tpic_settle_time new
Diffstat (limited to 'multiplexer.c')
-rw-r--r--multiplexer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/multiplexer.c b/multiplexer.c
index db1c572..50da183 100644
--- a/multiplexer.c
+++ b/multiplexer.c
@@ -92,14 +92,18 @@ void *put_on_display(void *param)
break;
}
for (column=0; column<8; column++) {
- GPIO_CLR = 1<<SER_CLK_PIN;
GPIO_ALTER(column + line == 7) = 1<<SER_DAT_PIN;
+ GPIO_CLR = 1<<SER_CLK_PIN;
+ wait_tpic_settle_time
GPIO_SET = 1<<SER_CLK_PIN;
+ wait_tpic_settle_time
}
for (column=39; column>=0; column--) {
- GPIO_CLR = 1<<SER_CLK_PIN;
GPIO_ALTER(display_data -> buf[display_data -> is_buf][column] & (0x01 << line)) = 1<<SER_DAT_PIN;
+ GPIO_CLR = 1<<SER_CLK_PIN;
+ wait_tpic_settle_time
GPIO_SET = 1<<SER_CLK_PIN;
+ wait_tpic_settle_time
#endif // SKIP_GPIO
}
#ifdef SKIP_GPIO