Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-uLCD-SE mbed-rtos mbed
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
Generated on Thu Jul 14 2022 00:24:34 by
1.7.2