Skip to content

Commit

Permalink
added 16 wide support to the outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
CamelCaseName committed Dec 12, 2023
1 parent a8f5a76 commit 001f37c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/output/hub75/1bit_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ void _displaySmallBuffer()
_set_color((*(((uint8_t *)(index)) + (sizeof(uint8_t) * 2))));
Clock;

#if PANEL_X > 16
++index;
_set_color(*(uint8_t *)(index) << (uint8_t)2);
Clock;
Expand Down Expand Up @@ -101,6 +102,7 @@ void _displaySmallBuffer()
Clock;
_set_color((*(((uint8_t *)(index)) + (sizeof(uint8_t) * 2))));
Clock;
#endif
#if PANEL_X > 32
++index;
_set_color(*(uint8_t *)(index) << (uint8_t)2);
Expand Down
5 changes: 4 additions & 1 deletion src/output/hub75/2bit_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ void _displayBigBuffer()
_set_color((*(((uint8_t *)(index)) + (sizeof(uint8_t) * 5))));
Clock;

#if PANEL_X > 16
++index;
_set_color((uint8_t)((*((uint16_t *)(index)) >> (uint8_t)4)));
Clock;
Expand Down Expand Up @@ -108,7 +109,7 @@ void _displayBigBuffer()
Clock;
_set_color((*(((uint8_t *)(index)) + (sizeof(uint8_t) * 5))));
Clock;

#endif
#if PANEL_X > 32
++index;
_set_color((uint8_t)((*((uint16_t *)(index)) >> (uint8_t)4)));
Expand Down Expand Up @@ -255,6 +256,7 @@ void _displayBigBuffer()
_set_color((uint8_t)((*((uint16_t *)(((uint8_t *)(index)) + (sizeof(uint8_t) * 4)))) >> (uint8_t)2));
Clock;

#if PANEL_X > 16
++index;
_set_color(*(uint8_t *)(index) << (uint8_t)2);
Clock;
Expand Down Expand Up @@ -293,6 +295,7 @@ void _displayBigBuffer()
_set_color((uint8_t)((*((uint16_t *)(((uint8_t *)(index)) + (sizeof(uint8_t) * 4)))) >> (uint8_t)2));
Clock;

#endif
#if PANEL_X > 32
++index;
_set_color(*(uint8_t *)(index) << (uint8_t)2);
Expand Down
16 changes: 8 additions & 8 deletions src/output/hub75/flash_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;

#if PANEL_X >= 32
#if PANEL_X > 16
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -113,7 +113,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
#endif
#if PANEL_X >= 64
#if PANEL_X > 32
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -255,7 +255,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;

#if PANEL_X >= 32
#if PANEL_X > 16
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -290,7 +290,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
#endif
#if PANEL_X >= 64
#if PANEL_X > 32
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -431,7 +431,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;

#if PANEL_X >= 32
#if PANEL_X > 16
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -466,7 +466,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
#endif
#if PANEL_X >= 64
#if PANEL_X > 32
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -608,7 +608,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;

#if PANEL_X >= 32
#if PANEL_X > 16
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down Expand Up @@ -643,7 +643,7 @@ void _displayFlashBuffer()
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
#endif
#if PANEL_X >= 64
#if PANEL_X > 32
_set_color(pgm_read_byte(INDEX_MOVE));
Clock;
_set_color(pgm_read_byte(INDEX_MOVE));
Expand Down

0 comments on commit 001f37c

Please sign in to comment.