ILI9225 lcd driver: remove backlight control function, is a SAM3N-EK only
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Oct 2010 14:36:45 +0000 (14:36 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 27 Oct 2010 14:36:45 +0000 (14:36 +0000)
implementation, each board implements its own backlight system.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4474 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/lcd_ili9225.c
bertos/drv/lcd_ili9225.h

index 5594dc969e11fe253d6a8462286ea2ea5dca0033..d8fbdfdc5ed8771447dc391ab8c316defe392a16 100644 (file)
@@ -252,33 +252,6 @@ static void lcd_reset(void)
        timer_delay(50);
 }
 
-/**
- * Set display backlight intensity.
- */
-void lcd_ili9225_backlight(unsigned level)
-{
-    unsigned i;
-
-    if (level > LCD_BACKLIGHT_MAX)
-           level = LCD_BACKLIGHT_MAX;
-
-    // Switch off backlight
-    LCD_BACKLIGHT_LOW();
-    timer_delay(1);
-
-    // Set new level
-    for (i = 0; i <= level; i++)
-    {
-           LCD_BACKLIGHT_LOW();
-           LCD_BACKLIGHT_LOW();
-           LCD_BACKLIGHT_LOW();
-
-           LCD_BACKLIGHT_HIGH();
-           LCD_BACKLIGHT_HIGH();
-           LCD_BACKLIGHT_HIGH();
-    }
-}
-
 /**
  * Display initialization.
  */
index 4484ebf92608ee89034e84578b3c7cdafbbabcbc..e365b4e501c61074431283fe3a9c4ba3804af365 100644 (file)
@@ -45,7 +45,6 @@
 
 #define LCD_WIDTH          176
 #define LCD_HEIGHT         220
-#define LCD_BACKLIGHT_MAX  15
 
 // Fwd decl
 struct KFile;
@@ -53,7 +52,6 @@ struct KFile;
 void lcd_ili9225_init(struct KFile *spi);
 void lcd_ili9225_on(void);
 void lcd_ili9225_off(void);
-void lcd_ili9225_backlight(unsigned level);
 void lcd_ili9225_blitRaw(const uint8_t *data,
                uint8_t x, uint8_t y, uint8_t width, uint8_t height);
 void lcd_ili9225_blitBitmap(const Bitmap *bm);