diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-11-28 22:40:23 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-11-28 22:40:23 +0100 |
commit | 7b2e0d06d4cd8a472a9162460f5cf8d2d263cee4 (patch) | |
tree | e17bc88cef51e9a8117ec9e1b47af03ac78dab7d /drivers/ginput | |
parent | fa82491a0badcb1d6afb46554655deec35a4a9f3 (diff) | |
download | uGFX-7b2e0d06d4cd8a472a9162460f5cf8d2d263cee4.tar.gz uGFX-7b2e0d06d4cd8a472a9162460f5cf8d2d263cee4.tar.bz2 uGFX-7b2e0d06d4cd8a472a9162460f5cf8d2d263cee4.zip |
ILI9320 landscape mode
Diffstat (limited to 'drivers/ginput')
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c index 9c1a582b..5e390399 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c @@ -119,7 +119,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt) { sampleBuf[i] = read_value(0xD1);
read_value(0xD0);
filter();
- lastx = (coord_t)sampleBuf[3];
+ lastx = 42;//(coord_t)sampleBuf[3];
/* Get the Y value using the same process as above */
read_value(0x91);
@@ -127,7 +127,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt) { sampleBuf[i] = read_value(0x91);
read_value(0x90);
filter();
- lasty = (coord_t)sampleBuf[3];
+ lasty = 42;//(coord_t)sampleBuf[3];
// Release the bus
release_bus();
diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h index cba9497d..d213cd17 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_board_firebull_stm32f103.h @@ -90,7 +90,7 @@ static __inline uint16_t read_value(uint16_t port) { spiExchange(&SPID1, 3, txbuf, rxbuf);
ret = (rxbuf[1] << 5) | (rxbuf[2] >> 3);
-
+return 42;
return ret;
}
diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h index 1ab568f5..de04e1f0 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse_config.h @@ -28,9 +28,9 @@ #define _LLD_GINPUT_MOUSE_CONFIG_H
#define GINPUT_MOUSE_EVENT_TYPE GEVENT_TOUCH
-#define GINPUT_MOUSE_NEED_CALIBRATION TRUE
+#define GINPUT_MOUSE_NEED_CALIBRATION FALSE
#define GINPUT_MOUSE_LLD_CALIBRATION_LOADSAVE FALSE
-#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 2
+#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 4
#define GINPUT_MOUSE_READ_CYCLES 4
#define GINPUT_MOUSE_POLL_PERIOD 100
#define GINPUT_MOUSE_MAX_CLICK_JITTER 2
|