Better IR settings panel organization
Cosmetic changes
Add cmd line option for not checking connection status
Better Gyroscope calibration
Simplified connection handling
Added some comments
Although, I highly doubt that the camera sensor does not support AE, it seems that the register for this is absent...
Otherwise it depends on more than 1 register.
So, until it is found, implement it manually.
Add an edge case on slow CPUs/BTs that a cmd is sent late and we don't get the reply we expect.
Additionally add some error notifications for color spi reading
Still it's unknown what the values x04/x05 and x12/x18 are.
Thoughts for food:
Maybe it's the MCU version? 4.12 in <=3.86 and 5.18 in 3.89?
So the switch requested 3.09 mcu version is the minimum?
The joy-con got an mcu fw update also? How much time the update took? The PatchRam fw update in SPI is very fast.
Or the PatchRam is able to live patch the stm32 MCU firmware also?
This is for hid reads and writes.
You can enable it, by using the argument: -d.
It will dump all successful traffic between Joy-Con Toolkit and the controller and it will save it live into traffic_log.txt.
Update IMU calibration values and testing based on the latest developments.
Move sensor/stick test winforms update logic to the loop fuction.
Lastly, add the base for a refresh button (probably also a disconnect button will be implemented).
Unfortunatelly, no hw no test. So I took users testing for granted..
Had to change my Joy-Con to be recognisable as a Pro Controller to test that the buttons color work on Pro controller on Switch and that the default white is actually to distinguish them from the black body.
Note: Now Pro buttons WHITE color will be previewed as Grey.
For now it can play only the .bnvib with 0x04 at offset 0x00.
The .jcvib file format is simple HD Rumble file I created with raw (Joycon protocol) values.
It can be created using look up tables and converting the frequencies and amplitudes to the correct commands.
The structure is:
Raw HD Rumble file format [.jcvib] (Joy-Con Format):
Big-Endian
Offset - size - Remarks
0x00 - uint32_t - Magic. 0x52524157 or RRAW in ASCII
0x04 - uint16_t - Sample rate in ms.
0x06 - uint32_t - Number of rumble patterns. This is how many groups of 4 bytes we have.
0x0A - uint32_t - Here the raw data starts. This should be in the values that joycon understand.
0x0E - uint32_t - 2nd Rumble pattern
And so on....
Example raw rumble pattern:
0x08C9C040:
0x08 is HF,
0xC9 is 0xC8 HA + 0x01 HF higher frequency bit.
0xC0 is 0x40 LF + 0x80 intermediate LA byte
0x40 is LA