Skip to content
Browse files

Run bitmap faster, hues slower

  • Loading branch information...
1 parent 3f8061c commit a131a9fbd6f0f409b32408e7ff2ead351b358b3c @osresearch committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 bitmap-test.c
  2. +1 −1 matrix-test.c
View
2 bitmap-test.c
@@ -44,7 +44,7 @@ main(
{
for (unsigned y = 0 ; y < 16 ; y++)
{
- uint8_t j = (i >> 8);
+ uint8_t j = (i >> 6);
uint8_t * const inpx = (void*) &buf[4 * ((x + j) % num_pixels) + num_pixels * (16 - y) * 4];
uint8_t * const px = (void*) &p[x + num_pixels * y];
View
2 matrix-test.c
@@ -137,7 +137,7 @@ main(void)
rainbow(p, num_pixels, 10, i);
ledscape_draw(leds, frame_num);
- usleep(10000);
+ usleep(20000);
// wait for the previous frame to finish;
//const uint32_t response = ledscape_wait(leds);

0 comments on commit a131a9f

Please sign in to comment.
Something went wrong with that request. Please try again.