RA8875 fix

This commit is contained in:
Joel Bodenmann 2013-07-20 00:24:49 +02:00
parent 1598916830
commit b91097e311
2 changed files with 5 additions and 5 deletions

View File

@ -436,7 +436,8 @@ void gdisp_lld_draw_pixel(coord_t x, coord_t y, color_t color) {
GDISP.Orientation = (gdisp_orientation_t)value;
return;
case GDISP_CONTROL_BACKLIGHT:
gdisp_lld_bg_dimmer(54 + ((uint8_t)value) << 1);//turn 0..100% in 54..255
set_backlight((uint8_t )value);
//gdisp_lld_bg_dimmer(54 + ((uint8_t)value) << 1);//turn 0..100% in 54..255
return;
/*
case GDISP_CONTROL_CONTRAST:

View File

@ -23,15 +23,14 @@
/*===========================================================================*/
#define GDISP_DRIVER_NAME "RA8875"
#define GDISP_LLD(x) gdisp_lld_##x##_RA8875
#define GDISP_HARDWARE_FILLS TRUE
#define GDISP_HARDWARE_BITFILLS TRUE
#define GDISP_HARDWARE_READPIXEL TRUE
#define GDISP_HARDWARE_BITFILL TRUE
#define GDISP_HARDWARE_READPIXEL TRUE
/* Maybe someday soon */
#define GDISP_HARDWARE_SCROLL FALSE
#define GDISP_HARDWARE_CONTROL FALSE
#define GDISP_HARDWARE_CONTROL TRUE
#define GDISP_PIXELFORMAT GDISP_PIXELFORMAT_RGB565