aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-01 21:11:42 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-01 21:11:42 +1000
commit77872d856086241f671dd7b265c9869ed0c54984 (patch)
treef1440c0f3fd9dc2056da1f4cab93def9c1fe1736 /drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
parent9413f04672b80baec6781b4f2058cdf6e167cd55 (diff)
downloaduGFX-77872d856086241f671dd7b265c9869ed0c54984.tar.gz
uGFX-77872d856086241f671dd7b265c9869ed0c54984.tar.bz2
uGFX-77872d856086241f671dd7b265c9869ed0c54984.zip
Nokia6610 GE12 driver ported to streaming.
Also added orientation and power control. Untested.
Diffstat (limited to 'drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h')
-rw-r--r--drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
index a1fa6050..d3594434 100644
--- a/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
+++ b/drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
@@ -6,8 +6,8 @@
*/
/**
- * @file drivers/gdisp/Nokia6610GE8/gdisp_lld_board_template.h
- * @brief GDISP Graphic Driver subsystem board interface for the Nokia6610 GE8 display.
+ * @file drivers/gdisp/Nokia6610GE12/gdisp_lld_board_template.h
+ * @brief GDISP Graphic Driver subsystem board interface for the Nokia6610 GE12 display.
*
* @addtogroup GDISP
* @{
@@ -16,6 +16,18 @@
#ifndef _GDISP_LLD_BOARD_H
#define _GDISP_LLD_BOARD_H
+/*
+ * Set various display properties. These properties mostly depend on the exact controller chip you get.
+ * The defaults should work for most controllers.
+ */
+//#define GDISP_SCREEN_HEIGHT 130 // The visible display height
+//#define GDISP_SCREEN_WIDTH 130 // The visible display width
+//#define GDISP_RAM_X_OFFSET 0 // The x offset of the visible area
+//#define GDISP_RAM_Y_OFFSET 2 // The y offset of the visible area
+//#define GDISP_SLEEP_POS 50 // The position of the sleep mode partial display
+//#define GDISP_INITIAL_CONTRAST 50 // The initial contrast percentage
+//#define GDISP_INITIAL_BACKLIGHT 100 // The initial backlight percentage
+
/**
* @brief Initialise the board for the display.
* @notes Performs the following functions:
@@ -95,7 +107,7 @@ static inline void write_data(uint16_t data) {
}
-#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__)
+#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL
/**
* @brief Read data from the lcd.
*