gagarinlg and Peter Feerick
8360434516
touch on/off with backlight on/off is now working for TX16s, untested, but implemented for NV14
...
simulator for tX16s and NV14 works
2021-11-16 11:21:04 +10:00
gagarinlg and Peter Feerick
ced9df9510
started implementing backlight tracking (unfinished)
...
horus touch driver internally tracks touch state and returns the state on read to make in independed of the mainwindow touchState
2021-11-16 11:21:04 +10:00
rotorman and Risto
fc2142ec78
Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it).
2021-10-02 14:22:01 +02:00
jfrickmann
b1ac01501d
Add tapCount to touchState in gt911 driver
2021-09-10 17:11:55 -04:00
rotorman
d19dcb9fc9
Unified dual I2C naming across Taranis and Horus builds.
...
Using "*_B1_*" for first logical I2C bus and "*_B2_*" for second logical I2C bus (instead of less clear I2C and I2CX).
2021-08-21 15:59:19 +02:00
rotorman
b123caba06
Adds support of LSM6DS33 I2C IMU to TX16S via AUX1 port. Using CMake option -DIMU_LSM6DS33=YES the std. serial USART3/AUX1 functionality is changed to I2C2 bus.
...
The temperature, gyro and linear acceleration values of LSM6DS33 are sampled and displayed at radio analogs dialog screen in SI-units.
2021-08-21 15:08:50 +02:00
rotorman
ef08fc019f
Incremented GT911 configuration with +1 and stopped writing it to GT911 on init/start if the same version has already been flashed to GT911 (as previously).
2021-07-18 11:32:14 +02:00
rotorman
5f0bac3dc9
Rewrore STM32F4 HAL_I2C_MspDeInit to not call HAL_GPIO_DeInit(), but only disable I2C GPIO with GPIO_Init().
2021-07-16 18:40:52 +02:00
rotorman
b86745d8f4
Clear ADDR bit in atomic way. Not in original STM32F4 HAL.
...
Lower timeouts to more reasonable values.
2021-07-15 22:41:12 +02:00
rotorman
2ca5cc771c
Added De-Init and Re-Init (in case this is ever required).
2021-07-15 21:34:20 +02:00
rotorman
8bfbb723f3
Integrated STM32F4 I2C HAL functions.
...
Changed old "I2C_SPEED" to "I2C_CLK_RATE" in order not to conflict with HAL.
Use TOUCH_INT again to gate touch sampling.
2021-07-15 19:25:31 +02:00
Raphael Coeffic
068c1a0f11
Renamed "hiccups" to "TSI2CEvents"
...
And use uint32_t for counting them.
2021-07-12 08:58:54 +02:00
Raphael Coeffic
52acfcd20d
Quick & dirty polling mode (don't care about INT line)
2021-07-11 17:43:31 +02:00
Raphael Coeffic
49ae57d370
Take account of some corner cases in I2C multi-byte read
...
See https://github.com/geoffreymbrown/STM32-Template/blob/master/Library/i2c.c#L39 and RM0090 p851-853.
2021-07-11 14:30:43 +02:00
rotorman and Raphael Coeffic
8c7f3cecec
* removed red LED
...
* added GT911 fw version and hiccup cound output to analogs page
* changed I2C to 400 kHz
* changed X Y threshold to 1
* added trace output
* fixed bool / uint8_t errors
2021-07-11 13:04:13 +02:00
rotorman and Raphael Coeffic
2c65b21355
Based on PR #408 ff34616 that according to @rcvideoreviews on Discord works.
...
Added:
* @olliw42 PR #415 STOP condition fix.
* @raphaelcoeffic EXTI_Trigger_Rising
* fixed some uint8_t bool confusions
* added volatile to touchEventOccured that is set from ISR and accessed from main code
* changed to upload GT911 config also if config version is the same
2021-07-11 13:04:13 +02:00
olliw42 and Raphael Coeffic
2eef807fba
avoid compile warning
2021-07-10 07:06:57 +02:00
Raphael Coeffic and Raphael Coeffic
4667b29698
[color] fix attempt for GT911 touch sensor driver
...
This fix contains 2 modifications:
- poll GT911_READ_XY_REG for 20ms in case not yet ready
- write 0 to GT911_READ_XY_REG in all cases
These fixes are largely inspired from the Linux GT9xx driver (see https://gitlab.com/AdyaAdya/goodix-touchscreen-linux-driver/-/blob/master/goodix.c )
2021-07-03 08:16:33 +02:00
Raphael Coeffic
0011eebffa
Fix attempt for locked touch
...
Thx Jakub!
2021-06-20 19:00:48 +02:00
norulers and Raphael Coeffic
5e03b762ea
Update gt911 config version
2021-06-15 09:53:13 +02:00
norulers and Raphael Coeffic
f4b50cee9d
Update T18 gt911 configuration
2021-06-15 09:53:12 +02:00
Raphael Coeffic
4dd8692191
Added GT911 config as provided by Jumper (not yet correct ATM)
2021-06-14 19:57:35 +02:00
3djc
fde097a1d6
TX16S touch interface working
2020-10-08 20:40:23 +02:00
Bertrand Songis
42a3198568
Merge with latest 2.3
2020-10-07 21:01:45 +02:00
3djc and GitHub
02c4886525
Move to proper I2C handling ( #7848 )
...
* Rework I2C handling
2020-07-28 19:21:33 +02:00
3djc and GitHub
6a5aa60a76
rework touch panel driver ( #7803 )
...
* Hardware I2C support
2020-07-07 21:14:46 +02:00
3djc
c778107779
Wake up backilight on screen touch when keys mode is selected
2020-06-18 14:42:20 +02:00
3djc
396ebf27b5
TX16S 2.4 touch support
2020-06-18 09:40:43 +02:00
3djc
be2c10c6cc
Cosmetics
2020-04-28 13:54:09 +02:00
3djc
251fc3b114
Cleanup
2020-04-27 07:56:39 +02:00
3djc
d0854f3489
Continued
2020-04-26 10:50:06 +02:00
3djc
e68bd31f4e
Continued
2020-04-26 09:02:05 +02:00
3djc
b61691df1d
Attempt rework touch control
2020-04-25 13:39:28 +02:00
Kilrah
716650f2cd
fix typo
2020-04-25 10:52:05 +02:00
3djc
e6b3326412
Add touch temporary debug
2020-04-25 08:37:50 +02:00
3djc
dd4f9de2e9
Please local travis (and more)
2020-04-07 12:48:09 +02:00
3djc
ccbbd413de
TP test started (untested)
2020-04-07 09:53:47 +02:00