Permalink
Browse files

something is not right with the width; glitches at 128?

  • Loading branch information...
1 parent 22cd2e1 commit 77cf177be75d7e2256a8ce8fb7ee3210f1bc8677 root committed Feb 26, 2014
Showing with 10 additions and 10 deletions.
  1. +8 −8 ledscape.c
  2. +2 −2 matrix-test.c
View
@@ -308,14 +308,14 @@ ledscape_init(
{ 0, 96 },
{ 0, 112 },
- { 128, 0 },
- { 128, 8 },
- { 128, 16 },
- { 128, 24 },
- { 128, 32 },
- { 128, 40 },
- { 128, 48 },
- { 128, 56 },
+ { 0, 0 },
+ { 0, 8 },
+ { 0, 16 },
+ { 0, 24 },
+ { 0, 32 },
+ { 0, 40 },
+ { 0, 48 },
+ { 0, 56 },
},
};
View
@@ -187,7 +187,7 @@ gradient(
int
main(void)
{
- const int width = 64;
+ const int width = 128;
const int height = 128;
ledscape_t * const leds = ledscape_init(width, height);
printf("init done\n");
@@ -208,7 +208,7 @@ main(void)
while (1)
{
- if (0)
+ if (1)
rainbow(p, width, height, 10, i++);
else
gradient(p, width, height, 10, i++);

0 comments on commit 77cf177

Please sign in to comment.