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.
Fork of TFTLCD by
Diff: lcd_base.h
- Revision:
- 19:eb27effb8c07
- Parent:
- 12:d0978272a340
- Child:
- 20:4bdca8d8dadc
--- a/lcd_base.h Thu Dec 13 02:41:56 2012 +0000
+++ b/lcd_base.h Thu Dec 13 03:37:22 2012 +0000
@@ -69,16 +69,29 @@
* \brief Shorthand for RGB( 0, 0, 255 ).
*/
#define COLOR_BLUE RGB( 0x00, 0x00, 0xFF )
+/** \def COLOR_CYAN
+ * \brief Shorthand for RGB( 0, 255, 255 )
+ */
+#define COLOR_CYAN RGB( 0x00, 0xFF, 0xFF )
+/** \def COLOR_MAGENTA
+ * \brief Shorthand for RGB( 255, 0, 255 )
+ */
+#define COLOR_MAGENTA RGB( 0xFF, 0x00, 0xFF )
+/** \def COLOR_YELLOW
+ * \brief Shorthand for RGB( 255, 255, 0 )
+ */
+#define COLOR_YELLOW RGB( 0xFF, 0xFF, 0x00 )
+
/** \enum Orientation_enum
* \brief Display orientation.
*/
enum Orientation_enum
{
- PORTRAIT = 0, /**< Display height is bigger than its width. View at 12 o'clock. */
- LANDSCAPE = 1, /**< Display width is bigger than its height. View at 9 o'clock. */
- PORTRAIT_REV = 2, /**< Display height is bigger than its width. View at 6 o'clock. */
- LANDSCAPE_REV = 3, /**< Display width is bigger than its height. View at 3 o'clock. */
+ PORTRAIT = 0, /**< Top row of the screen is at 12 o'clock. */
+ LANDSCAPE = 1, /**< Top row of the screen is at 9 o'clock. */
+ PORTRAIT_REV = 2, /**< Top row of the screen is at 6 o'clock. */
+ LANDSCAPE_REV = 3, /**< Top row of the screen is at 3 o'clock. */
};
/** \typedef orientation_t
* \brief Convenience shortcut for display orientation.
