Here is where I am now, if someone has suggestions or can help that would be greatly appreciated :
- STM32s use 3v but some pins are 5v tolerant, by pulling those pins up to 5v I should be able to get the right voltage to the trackpoint, when I start the MCU the data pin reads 5v and the clock pin 0v
- The threading part works because I tested it with an analog joystick read using ADCs in the same thread and it worked
- I use a pin for the RST connection to the trackpoint as I don't have the right condenser to setup the 2.2uF capacitor suggested in https://geekhack.org/index.php?topic=55 ... msg1291412 . I adapted the code to use a pin for that, it is also pulled up to 5v, but right now it reads 3.3v and I can't find a reason why.
Code: Select all
5v TP DAT PB3
| | |
+-/\/\/\---------+---------------+
|
| TP CLK PB4
| | |
+-/\/\/\---------+---------------+
|
| TP RST PB6
| | |
+-/\/\/\---------+---------------+
The code used is here
here are the parts : https://github.com/abondis/tmk_keyboard ... _chibios.c and https://github.com/abondis/tmk_keyboard ... busywait.c