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.
Dependents: test SDCard capstone_display capstone_display_2 ... more
Diff: st7735.h
- Revision:
- 20:4bdca8d8dadc
- Parent:
- 12:d0978272a340
- Child:
- 22:4c169297f374
diff -r eb27effb8c07 -r 4bdca8d8dadc st7735.h
--- a/st7735.h Thu Dec 13 03:37:22 2012 +0000
+++ b/st7735.h Fri Dec 21 06:05:15 2012 +0000
@@ -167,15 +167,16 @@
* \remarks Addressing commands are controller-specific and this function needs to be
* implemented separately for each available controller.
*/
- virtual void SetXY( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 );
+ virtual void SetXY( unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2 );
/** Sets the color of the pixel at the address pointer of the controller.
*
* This function is to be provided by each implementation separately in
* order to account for different color depth used by the controller.
* \param color The color of the pixel.
+ * \param mode The depth (palette) of the color.
*/
- virtual void SetPixelColor( unsigned int color );
+ virtual void SetPixelColor( unsigned int color, colordepth_t mode = RGB24 );
private:
void serializeByte( unsigned char data );