From dbdfdb39b80573098140a42d2a1704f43f4c40c0 Mon Sep 17 00:00:00 2001 From: aleph Date: Wed, 27 Oct 2010 14:36:45 +0000 Subject: [PATCH] ILI9225 lcd driver: remove backlight control function, is a SAM3N-EK only 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 | 27 --------------------------- bertos/drv/lcd_ili9225.h | 2 -- 2 files changed, 29 deletions(-) diff --git a/bertos/drv/lcd_ili9225.c b/bertos/drv/lcd_ili9225.c index 5594dc96..d8fbdfdc 100644 --- a/bertos/drv/lcd_ili9225.c +++ b/bertos/drv/lcd_ili9225.c @@ -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. */ diff --git a/bertos/drv/lcd_ili9225.h b/bertos/drv/lcd_ili9225.h index 4484ebf9..e365b4e5 100644 --- a/bertos/drv/lcd_ili9225.h +++ b/bertos/drv/lcd_ili9225.h @@ -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); -- 2.25.1