implementation, each board implements its own backlight system.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4474
38d2e660-2303-0410-9eaa-
f027e97ec537
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.
*/
#define LCD_WIDTH 176
#define LCD_HEIGHT 220
-#define LCD_BACKLIGHT_MAX 15
// Fwd decl
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);