aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-12-17 22:33:00 +0100
committerJoel Bodenmann <joel@unormal.org>2012-12-17 22:33:00 +0100
commitf115d43753c5bf6d6d0cf13e543125d1f2622682 (patch)
tree6cc6ddf798d7f2edeec700a0d2a82cc3c749f737 /drivers
parent55d16822aaf4d594bdd397e54638af10b4bdfdc7 (diff)
downloaduGFX-f115d43753c5bf6d6d0cf13e543125d1f2622682.tar.gz
uGFX-f115d43753c5bf6d6d0cf13e543125d1f2622682.tar.bz2
uGFX-f115d43753c5bf6d6d0cf13e543125d1f2622682.zip
SSD1289 calibration clear fix
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gdisp/SSD1289/gdisp_lld.c1
-rw-r--r--drivers/gdisp/SSD1289/gdisp_lld_config.h1
-rw-r--r--drivers/ginput/touch/MCU/ginput_lld_mouse_config.h10
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c
index 0f000637..8e9cee34 100644
--- a/drivers/gdisp/SSD1289/gdisp_lld.c
+++ b/drivers/gdisp/SSD1289/gdisp_lld.c
@@ -292,6 +292,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) {
void GDISP_LLD(clear)(color_t color) {
unsigned i;
+ reset_viewport();
acquire_bus();
set_cursor(0, 0);
stream_start();
diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h
index 1863ce04..dafbc90f 100644
--- a/drivers/gdisp/SSD1289/gdisp_lld_config.h
+++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h
@@ -36,7 +36,6 @@
/*===========================================================================*/
#define GDISP_DRIVER_NAME "SSD1289"
-#define IS_THIS_SSD1289 134038 /* very dirty fix until reset_viewport works */
#define GDISP_LLD(x) gdisp_lld_##x##_SSD1289
#define GDISP_HARDWARE_CLEARS TRUE
diff --git a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h
index 4711625b..b1d754f0 100644
--- a/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h
+++ b/drivers/ginput/touch/MCU/ginput_lld_mouse_config.h
@@ -30,12 +30,12 @@
#define GINPUT_MOUSE_EVENT_TYPE GEVENT_TOUCH
#define GINPUT_MOUSE_NEED_CALIBRATION TRUE
#define GINPUT_MOUSE_LLD_CALIBRATION_LOADSAVE FALSE
-#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 10
+#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 12
#define GINPUT_MOUSE_READ_CYCLES 4
-#define GINPUT_MOUSE_POLL_PERIOD 100
-#define GINPUT_MOUSE_MAX_CLICK_JITTER 4
-#define GINPUT_MOUSE_MAX_MOVE_JITTER 4
-#define GINPUT_MOUSE_CLICK_TIME 700
+#define GINPUT_MOUSE_POLL_PERIOD 25
+#define GINPUT_MOUSE_MAX_CLICK_JITTER 2
+#define GINPUT_MOUSE_MAX_MOVE_JITTER 2
+#define GINPUT_MOUSE_CLICK_TIME 500
#endif /* _LLD_GINPUT_MOUSE_CONFIG_H */
/** @} */