Skip to content

Commit

Permalink
made the serial example a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
CamelCaseName committed Nov 15, 2023
1 parent f342563 commit 850721a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/scrolling-example/scrolling-example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ struct coords
uint8_t : 2;
};

// this also doesnt really work yet, its too blinky
// + ugly programming
// a bit broken rn, after the first letters leave the screen it goes haywire

// create an instance of the panel
Panel panel = {};
Expand Down
5 changes: 3 additions & 2 deletions examples/serial-output/serial-output.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#define PANEL_BIG
#define PANEL_MAX_SPEED
#include "HUB75nano.h"
// this sketch should ouptut serial input to the panel

Expand Down Expand Up @@ -45,11 +46,11 @@ void loop()
{
if (t < 10)
{
fcolor = {.color_444 = (uint16_t)t}; // r>= 0, < 8
fcolor.color_444 = (uint16_t)t; // r>= 0, < 8
}
else if (t >= 20)
{
bgcolor = {.color_444 = (uint16_t)(t - 20)};
bgcolor.color_444 = (uint16_t)(t - 20);
}
}
else
Expand Down

0 comments on commit 850721a

Please sign in to comment.