Michael Kuchnik / Mbed 2 deprecated uLCD_Multiscreen

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers uLCD_Multiscreen.h Source File

uLCD_Multiscreen.h

00001 #ifndef ULCD_MULTISCREEN_H
00002 #define ULCD_MULTISCREEN_H
00003 #include "VirtualScreen.h"
00004 #include "uLCD_4DGL.h"
00005 /**
00006  * CLass represents an interface for seemlessly writing to multiple uLCD screens
00007  * in parallel.
00008  */
00009 class uLCD_Multiscreen {
00010     private:
00011         VirtualScreen<int, uLCD_4DGL>  virtualScreen;
00012         int screen_count;
00013     public:
00014         /**
00015          * Makes a Multiscreen interface.
00016          * @param screens Pointer to physical screens oriented from left to right in the vector.
00017          */
00018         uLCD_Multiscreen(vector<uLCD_4DGL*> screens);
00019         /**
00020          * Clears screen.
00021          */
00022         void cls();
00023         /**
00024          * Makes an unfilled rectangle.
00025          */
00026         void unfilledRectangle(int x, int y, int w, int h, int color);
00027         /**
00028          * Draws a line.
00029          */
00030         void drawLine(int x1,int y1,int  x2, int  y2, int color);
00031         /**
00032          * Draws an unfilled circle.
00033          */
00034         void unfilledCircle(int x0, int y0, int radius, int color);
00035         /**
00036          * Changes the background of the LCDs.
00037          */
00038         void changeBackground(int color);
00039         /**
00040          * Sets the baud rate for all screens. It is recommended to set this high.
00041          */
00042         void setBaudRate(int rate);
00043 };
00044 #endif