Skip to content

Commit

Permalink
Merge pull request #192 from nhjschulz/Development
Browse files Browse the repository at this point in the history
HUB75: Support  CONFIG_DISPLAY_ROTATE180
  • Loading branch information
BlueAndi authored Oct 11, 2024
2 parents 58708dd + 06cd169 commit 273e4ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/HalHub75Esp32/src/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ class Display : public IDisplay
{
Color& color = m_ledMatrix.getColor(x, y);

#if CONFIG_DISPLAY_ROTATE180 != 0
m_panel.drawPixelRGB888(
Board::LedMatrix::width - x - 1,
Board::LedMatrix::height - y - 1,
color.getRed(), color.getGreen(), color.getBlue());
#else
m_panel.drawPixelRGB888(x, y, color.getRed(), color.getGreen(), color.getBlue());
#endif
}
}
}
Expand Down

0 comments on commit 273e4ce

Please sign in to comment.