From b91097e3116b6edd21f00478b115cb611fff34b1 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 20 Jul 2013 00:24:49 +0200 Subject: [PATCH] RA8875 fix --- drivers/gdisp/RA8875/gdisp_lld.c | 3 ++- drivers/gdisp/RA8875/gdisp_lld_config.h | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gdisp/RA8875/gdisp_lld.c b/drivers/gdisp/RA8875/gdisp_lld.c index 33b2ec25..d583140b 100644 --- a/drivers/gdisp/RA8875/gdisp_lld.c +++ b/drivers/gdisp/RA8875/gdisp_lld.c @@ -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: diff --git a/drivers/gdisp/RA8875/gdisp_lld_config.h b/drivers/gdisp/RA8875/gdisp_lld_config.h index 315ab177..4cf4887a 100644 --- a/drivers/gdisp/RA8875/gdisp_lld_config.h +++ b/drivers/gdisp/RA8875/gdisp_lld_config.h @@ -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