diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 080e70d0..91e87ba3 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -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": [] } diff --git a/data/version.json b/data/version.json index 2676a163..58bfac9f 100644 --- a/data/version.json +++ b/data/version.json @@ -1,3 +1,3 @@ { - "version": "v8.0.0" + "version": "v8.1.0" } \ No newline at end of file diff --git a/doc/doxygen/Doxyfile b/doc/doxygen/Doxyfile index 6428baf7..a6e24f39 100644 --- a/doc/doxygen/Doxyfile +++ b/doc/doxygen/Doxyfile @@ -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 diff --git a/lib/HalHub75Esp32/src/Display.cpp b/lib/HalHub75Esp32/src/Display.cpp index d56b62f0..f95219df 100644 --- a/lib/HalHub75Esp32/src/Display.cpp +++ b/lib/HalHub75Esp32/src/Display.cpp @@ -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; diff --git a/lib/HalHub75Esp32/src/Display.h b/lib/HalHub75Esp32/src/Display.h index 3d749556..e1b10aa4 100644 --- a/lib/HalHub75Esp32/src/Display.h +++ b/lib/HalHub75Esp32/src/Display.h @@ -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.