Skip to content

Commit

Permalink
Pixeltime adjustmenst
Browse files Browse the repository at this point in the history
  • Loading branch information
2dom committed Nov 2, 2019
1 parent a25a753 commit 7ccbc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions PxMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ inline void PxMATRIX::fillMatrixBuffer(int16_t x, int16_t y, uint8_t r, uint8_t
total_offset_r=base_offset-row_sector__offset*row_sector;
if ((yy+_row_pattern<=y) && (y<yy+2*_row_pattern))
total_offset_r=base_offset-row_sector__offset*row_sector;

row_sector++;
}
}
Expand Down
3 changes: 2 additions & 1 deletion examples/pixeltime/pixeltime.ino
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Ticker display_ticker;

// This defines the 'on' time of the display is us. The larger this number,
// the brighter the display. If too large the ESP will crash
uint8_t display_draw_time=10; //10-50 is usually fine
uint8_t display_draw_time=20; //10-50 is usually fine

PxMATRIX display(32,16,P_LAT, P_OE,P_A,P_B,P_C);
//PxMATRIX display(64,32,P_LAT, P_OE,P_A,P_B,P_C,P_D);
Expand Down Expand Up @@ -251,6 +251,7 @@ void loop() {
display.drawLine(xx+16,6,xx+16,10,display.color565(0,xx*16,0));
display.drawLine(xx+16,11,xx+16,15,display.color565(0,0,xx*16));
}
delay(1000);
for (uint8_t dimm=255; dimm>0; dimm--)
{
display.setBrightness(dimm);
Expand Down

0 comments on commit 7ccbc0a

Please sign in to comment.