Skip to content

Commit

Permalink
Merge branch 'Development' of https://github.com/BlueAndi/Pixelix int…
Browse files Browse the repository at this point in the history
…o Development
  • Loading branch information
BlueAndi committed Jan 18, 2025
2 parents 2c2ac82 + 13e9352 commit 456308c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 28 deletions.
11 changes: 7 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
"platformio.platformio-ide",
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.cpptools-themes",
"yzhang.markdown-all-in-one",
"jebbs.plantuml"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
"unwantedRecommendations": []
}
2 changes: 1 addition & 1 deletion data/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v8.0.0"
"version": "v8.1.0"
}
2 changes: 1 addition & 1 deletion doc/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PROJECT_NAME = Pixelix
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = v8.0.0
PROJECT_NUMBER = v8.1.0

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
26 changes: 26 additions & 0 deletions lib/HalHub75Esp32/src/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,32 @@ Display::~Display()
{
}

void Display::show()
{
if (true == m_isOn)
{
int16_t y;
int16_t x;

for(y = 0; y < Board::LedMatrix::height; ++y)
{
for(x = 0; x < Board::LedMatrix::width; ++x)
{
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
}
}
}
}

void Display::off()
{
m_isOn = false;
Expand Down
23 changes: 1 addition & 22 deletions lib/HalHub75Esp32/src/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,7 @@ class Display : public IDisplay
* Show framebuffer on physical display. This may be synchronous
* or asynchronous.
*/
void show() final
{
int16_t y;
int16_t x;

for(y = 0; y < Board::LedMatrix::height; ++y)
{
for(x = 0; x < Board::LedMatrix::width; ++x)
{
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
}
}
}
void show() final;

/**
* The display is ready, when the last physical pixel update is finished.
Expand Down

0 comments on commit 456308c

Please sign in to comment.