summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-22 12:32:06 +0200
committerErich Eckner <git@eckner.net>2018-10-22 12:32:06 +0200
commit9cbc55a81c76dd3bfb480b9f280f9958ce6ef592 (patch)
tree9546d2f2a246b5a0eec14aa6a9a5779d4b835c88 /anzeige.c
parent697fa673161512fe3affba27c08d0bdbf86f1374 (diff)
downloadanzeige-9cbc55a81c76dd3bfb480b9f280f9958ce6ef592.tar.xz
anzeige.c: unify loop (for now)
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/anzeige.c b/anzeige.c
index 55c234a..b08d4d6 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -194,15 +194,14 @@ void *put_on_display(void *param)
printf("=\n");
#endif
display_data -> is_buf = display_data -> should_buf;
+ for (line=0; line<7; line++) {
#ifdef SKIP_GPIO
- for (line=6; line>=0; line--) {
for (column=0; column<40; column++) {
if ((*(display_data -> buf[display_data -> is_buf] + column)>>line) & 0x01)
printf("X");
else
printf(".");
#else
- for (line=0; line<7; line++) {
GPIO_CLR = 1<<GATE_PIN; // Licht an
for (column=0; column<8; column++) {
GPIO_CLR = 1<<SER_CLK_PIN;