1.44 tft lcd display
Dependencies: TFT_fonts mbed-os
Fork of newTFTLCD by
Diff: lcd_base.h
- Revision:
- 19:eb27effb8c07
- Parent:
- 12:d0978272a340
- Child:
- 20:4bdca8d8dadc
diff -r b934d95cc380 -r eb27effb8c07 lcd_base.h --- 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.