Allows users to seamlessly write to 2 or 3 uLCD screens as if they were one large screen.

Dependencies:   4DGL-uLCD-SE mbed-rtos mbed

Blit.cpp

Committer:
Mkuchnik3
Date:
2015-03-11
Revision:
0:15002a72309b

File content as of revision 0:15002a72309b:

#include "Blit.h"
Blit::Blit(int x, int y, int w, int h, int *colors) {
    this->x = x;
    this->y = y;
    this->w = w;
    this->h = h;
    this->colors = new int[w*h];
    for (int i = 0; i < w*h; i++) {
        this->colors[i] = colors[i];
    }
}
void Blit::execute(uLCD_4DGL* uLCD) {
    uLCD->BLIT(x,y,w,h,colors);
}