diff options
author | Erich Eckner <git@eckner.net> | 2018-10-25 23:48:53 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-25 23:48:53 +0200 |
commit | 4bb63b1c557d31cfc8a2e90bbadd4fc02520e8cf (patch) | |
tree | a014fb536501c5af9c1f994a31ad0341c6e45984 /multiplexer.c | |
parent | 6146a1783aaa67b3869612eeeaca47a63a8b2c13 (diff) | |
download | anzeige-4bb63b1c557d31cfc8a2e90bbadd4fc02520e8cf.tar.xz |
slow-motion + test-string
Diffstat (limited to 'multiplexer.c')
-rw-r--r-- | multiplexer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/multiplexer.c b/multiplexer.c index 474f7e6..c81864b 100644 --- a/multiplexer.c +++ b/multiplexer.c @@ -81,20 +81,26 @@ void *put_on_display(void *param) for (column=0; column<8; column++) { GPIO_CLR = 1<<SER_CLK_PIN; GPIO_ALTER(column == line) = 1<<SER_DAT_PIN; + usleep(25); GPIO_SET = 1<<SER_CLK_PIN; + usleep(25); } for (column=39; column>=0; column--) { GPIO_CLR = 1<<SER_CLK_PIN; GPIO_ALTER((*(display_data -> buf[display_data -> is_buf] + column)>>line) & 0x01) = 1<<SER_DAT_PIN; + usleep(250); GPIO_SET = 1<<SER_CLK_PIN; + usleep(250); #endif } - usleep(1000); #ifdef SKIP_GPIO + usleep(1000); printf("\n"); #else GPIO_SET = 1<<GATE_PIN; // Licht aus + usleep(250); GPIO_CLR = 1<<PAR_CLK_PIN; + usleep(250); GPIO_SET = 1<<PAR_CLK_PIN; #endif } |