IOGS / LEnsE / Logos GUI

Dependents:   PIMS_WDM_IHM

IOGS_LEnsE_GUI.cpp

Committer:
villemejane
Date:
23 months ago
Revision:
1:4118813c2218
Parent:
0:a57159385e69

File content as of revision 1:4118813c2218:

#include "IOGS_LEnsE_GUI.hpp"


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++){
            uint32_t col = 0xFF000000 + image.data[x + y*x_max];
            lcd->DrawPixel(x, y, col);
        }
    }    
}