Allow user to connect multiple screen.

Dependencies:   mbed-rtos mbed

Committer:
Ratchapong
Date:
Wed Mar 11 05:00:37 2015 +0000
Revision:
0:052d0f82433e
Working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ratchapong 0:052d0f82433e 1 #ifndef ULCD_MULTISCREEN_H
Ratchapong 0:052d0f82433e 2 #define ULCD_MULTISCREEN_H
Ratchapong 0:052d0f82433e 3 #include "VirtualScreen.h"
Ratchapong 0:052d0f82433e 4 #include "uLCD_4DGL.h"
Ratchapong 0:052d0f82433e 5 /**
Ratchapong 0:052d0f82433e 6 * CLass represents an interface for seemlessly writing to multiple uLCD screens
Ratchapong 0:052d0f82433e 7 * in parallel.
Ratchapong 0:052d0f82433e 8 */
Ratchapong 0:052d0f82433e 9 class uLCD_Multiscreen {
Ratchapong 0:052d0f82433e 10 private:
Ratchapong 0:052d0f82433e 11 VirtualScreen<int, uLCD_4DGL> virtualScreen;
Ratchapong 0:052d0f82433e 12 int screen_count;
Ratchapong 0:052d0f82433e 13 public:
Ratchapong 0:052d0f82433e 14 uLCD_Multiscreen(vector<uLCD_4DGL*> screens);
Ratchapong 0:052d0f82433e 15 void cls();
Ratchapong 0:052d0f82433e 16 void unfilledRectangle(int x, int y, int w, int h, int color);
Ratchapong 0:052d0f82433e 17 void drawLine(int x1,int y1,int x2, int y2, int color);
Ratchapong 0:052d0f82433e 18 void unfilledCirlce(int x0, int y0, int radius, int color);
Ratchapong 0:052d0f82433e 19 void changeBackground(int color);
Ratchapong 0:052d0f82433e 20 void setBaudRate(int rate);
Ratchapong 0:052d0f82433e 21 };
Ratchapong 0:052d0f82433e 22 #endif