52 Commits
Author SHA1 Message Date
Kostas Missos 0aebab229f [SPI] Add Stick/Sensor encoding/decoding utils 2018-04-22 18:07:01 +03:00
Kostas Missos 5a6ba9bd49 Improvements and bugfixes
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
2018-04-18 23:32:09 +03:00
Kostas Missos 52f0454b8c [IR] Software Auto Exposure (experimental)
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.
2018-04-11 20:53:50 +03:00
Kostas Missos c77c008499 [IR] Bugfixes 2018-04-11 20:44:13 +03:00
Kostas Missos 8c0d440f1b [IR] Optimize get_ir_registers() + some other fixes 2018-04-07 20:56:32 +03:00
Kostas Missos 8de445eb73 [IR] Add loads of new IR settings 2018-04-07 20:53:20 +03:00
Kostas Missos 2529699b13 [IR] Add IR feature registers 2018-04-03 02:08:24 +03:00
Kostas Missos 94283adeff [IR] Get IR registers function + bugfixes 2018-04-03 02:06:42 +03:00
Kostas Missos 3f41f406d5 [IR] Add live configuration support
This allows to change the camera settings on the fly when it's streaming images.
2018-03-30 17:03:39 +03:00
Kostas Missos f79544b25f Some last minute fixes
*Reduce the bt traffic volume for IR/NFC
*Make some variables that never change static
2018-03-29 14:59:10 +03:00
Kostas Missos deb2478653 [IR] Add some edge cases and others
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
2018-03-29 13:29:03 +03:00
Kostas Missos 0c69e7027f [IR/NFC] Fix IR/NFC in 3.89 jc fw
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?
2018-03-29 00:28:28 +03:00
Kostas Missos 6ffb255e49 [Hidapi] Add buffer logging
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.
2018-03-28 16:12:52 +03:00
Kostas Missos e01b3ae1cf Show specific error for IR/NFC
Also enable NFC for Pro controller
2018-03-28 06:35:11 +03:00
Kostas Missos 8e1c33edba Fix easter eggs music...
We have pointers now. Not arrays.
2018-03-27 19:36:57 +03:00
Kostas Missos b6184931ae Make IR/NFC and other non-blocking 2018-03-27 19:29:25 +03:00
Kostas Missos c2164ad2aa Add NIR Camera support. Yey! 2018-03-27 02:33:32 +03:00
Kostas Missos e5be3be5af Add NFC read tag info support 2018-03-27 02:25:14 +03:00
Kostas Missos cac80a3c29 Array bugfixes and preparations 2018-03-27 02:05:12 +03:00
Kostas Missos c3567b8603 More bugfixes and error checking 2018-03-20 23:52:50 +02:00
Kostas Missos 5b488dae47 Non-blocking part 1
Because of that it hangs less when there are lost packets or not support functions. E.g. 3rd party controllers
2018-03-19 23:22:39 +02:00
Kostas Missos c3cfb1fe08 Bugfixes 2018-03-19 23:07:04 +02:00
Kostas Missos 96d6a4591a Utilize error checking + some bugfixes
Error checking for Read/Write SPI
2018-02-28 14:35:47 +02:00
Kostas Missos 5c6cd7d5ca Bugfixes and refactoring part 3 2018-02-23 19:54:26 +02:00
Kostas Missos 714dfb9169 Replace all Tabs with 4 Spaces 2018-02-20 20:56:25 +02:00
Kostas Missos 4c815551c5 Cosmetic refactoring
Replace tabs with spaces
Break big lines to smaller ones
Fix some bugs
2018-02-11 10:25:36 +02:00
Kostas Missos 2d0e56a7d4 Joy-Con Color Picker v1.5.3
Based on Adobe Color Picker Clone 1 by Danny Blanchard
2018-02-11 10:12:33 +02:00
Kostas Missos 6e3bb2de28 Happy SMO release 2017-11-01 01:21:30 +02:00
Kostas Missos dd16db799d Bugfixes and streamlining of functions
Red Joy-Con colors courtesy of @SciresM
2017-10-30 23:00:39 +02:00
Kostas Missos 184d436761 Version update 2.5
Binaries will not be released yet.
Awaiting new red Joy-Con
2017-10-09 22:10:04 +03:00
Kostas Missos d761353cd8 Add Analog Stick calibration
Additionally fix layout
2017-10-09 22:06:49 +03:00
Kostas Missos 05913848cb Improvements and bugfixes 2017-10-09 01:55:36 +03:00
Kostas Missos c6a8389764 Add device temperature + small fixes 2017-09-27 02:59:29 +03:00
Kostas Missos 3315984474 Mass IMU CAL test, debug cmd
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).
2017-09-25 08:25:02 +03:00
Kostas Missos 9231d263ba Add Pro controllers colors change
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.
2017-09-15 05:11:41 +03:00
Kostas Missos f42fa57835 Reverse ACC/GYRO order, add G/dps reading, fix bugs 2017-09-14 21:16:47 +03:00
Evan Kahn 640b1a1506 Fixed mistake in ordering of gyro/accel data bytes (I think?) 2017-09-11 12:36:30 -04:00
Kostas Missos 730e2a1643 Add 6-Axis Calibration and device parameters 2017-08-27 04:38:23 +03:00
Kostas Missos 788042286b Fix right stick values
The values are for dual joy-con X/Y axis
2017-08-26 03:27:43 +03:00
Kostas Missos b7a595d713 Fix left stick calibration info 2017-08-24 15:03:52 +03:00
Kostas Missos abc711c4dd Add button/stick/gyro test 2017-08-24 05:42:07 +03:00
Kostas Missos bd594a85ec Fix minor compilation error 2017-08-21 18:11:23 +03:00
Kostas Missos 9d4fd61d6b Version update 2.0 2017-08-21 02:04:01 +03:00
Kostas Missos d979dbf2eb Add support for Loop .bnvib + many bugfixes 2017-08-21 02:01:54 +03:00
Kostas Missos b3f26cc460 Add actuator protection and many bugfixes
+ Prepare for the loop bnvib formats
2017-08-20 16:03:33 +03:00
Kostas Missos 623d99d306 Add HOME Led breathing and heartbeat 2017-08-18 02:57:13 +03:00
Kostas Missos 999afff723 Implement .bnvib and jcvib HD Rumble Player
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
2017-08-18 02:55:54 +03:00
Kostas Missos 4c3bf2739d Remove all the handles!! 2017-08-18 02:39:29 +03:00
Kostas Missos 0f48e6dabe Add battery percent and expert debug mode 2017-08-17 01:24:17 +03:00
Kostas Missos cf1bf2ceab Add complete input report reply
You can now see raw battery, buttons and analog sticks
2017-08-15 01:51:59 +03:00