IOGS / LEnsE / Logos GUI
Diff: IOGS_LEnsE_GUI.cpp
- Revision:
- 1:4118813c2218
- Parent:
- 0:a57159385e69
--- a/IOGS_LEnsE_GUI.cpp Tue Dec 18 14:31:34 2018 +0000 +++ b/IOGS_LEnsE_GUI.cpp Tue Jan 14 09:07:07 2020 +0000 @@ -1,13 +1,16 @@ #include "IOGS_LEnsE_GUI.hpp" -void DrawImage(tImage image, LCD_DISCO_F429ZI *lcd){ +void DrawImage(tImage image, LCD_DISCO_F746NG *lcd){ int x, y, x_max, y_max; x_max = image.width; y_max = image.height; for(y = 0; y < y_max; y++){ for(x = 0; x < x_max; x++){ - lcd->DrawPixel(x, y, image.data[x + y*x_max]); + uint32_t col = 0xFF000000 + image.data[x + y*x_max]; + lcd->DrawPixel(x, y, col); } } } + +