95 Commits
Author SHA1 Message Date
Kostas Missos 9d0cc455ae [NFC] Add Ntag213/215/216 raw data reading 2018-04-30 15:24:29 +03:00
Kostas Missos 3294abb705 Version 5.2.0 update 2018-04-23 23:03:17 +03:00
Kostas Missos 9d0c4636cc Tiny code deduplication 2018-04-23 22:42:39 +03:00
Kostas Missos ebff8b393a Finalize Sensor Cal & Stick dev editing 2018-04-22 18:22:53 +03:00
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 3860347aba [IR] Organize settings. Plus some bugfixes 2018-04-08 21:56:32 +03:00
Kostas Missos 1efa0d497c Add app screenshot in readme 2018-04-07 21:49:23 +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 795390e967 Version 5.0.0 update
IR/NFC and other nice things to have :)

Thanks to all testers!
You helped tremendously!
2018-03-29 13:32:03 +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 904d4a5a11 [Hidapi] Traffic logger QoL changes
Don't let the hid write buffer be bigger than output_report_length size permitted.

Report when Joy-Con toolkit requests a zero buffer from a hid_read
2018-03-28 16:34:49 +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 10e6ccfc8d Add support for editing stick user calibration 2018-03-27 02:29:31 +03:00
Kostas Missos e5be3be5af Add NFC read tag info support 2018-03-27 02:25:14 +03:00
Kostas Missos 94882e9b8c Add full support for Update 5.0.0 Grips 2018-03-27 02:16:49 +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 2ce12eaf24 Add update 5.0.0 Grips Color algorithm
This is unfinished and unconfirmed..
2018-03-19 23:08:41 +02:00
Kostas Missos c3cfb1fe08 Bugfixes 2018-03-19 23:07:04 +02:00
Kostas Missos 267c4c4e33 Version 3.0.2 update 2018-03-01 12:46:40 +02:00
Kostas Missos f837df0f89 Add mitigations for Pro contr erratic behavior 2018-02-28 14:38:30 +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 ee395c46e8 Version 3.0.1 update
Remove testing code.
Oups!
2018-02-23 20:47:23 +02:00
Kostas Missos 4de5f875b1 Version 3.0.0 update
At last!
2018-02-23 19:57:58 +02:00
Kostas Missos f448431824 Fix 150% (144dpi) scaling 2018-02-23 19:57:14 +02:00
Kostas Missos 5c6cd7d5ca Bugfixes and refactoring part 3 2018-02-23 19:54:26 +02:00
Kostas Missos dbada35a96 Smoother controller color preview
Break the images into 3 layers of one color.
Manage smoothing through alpha channel instead of a median logic.
Re-add white color for pro controller buttons, because of smoother painting without annoying white spots.
Up the resolution to help high DPI screens
2018-02-23 02:07:07 +02:00
Kostas Missos e10133079d Refactor names Part2 2018-02-21 00:18:39 +02:00
Kostas Missos fbeee89623 Add Retail Colors reference xml
+fix config generator net version string
2018-02-20 21:40:11 +02:00
Kostas Missos e996013526 Refactor names Part1 2018-02-20 21:30:52 +02:00
Kostas Missos 714dfb9169 Replace all Tabs with 4 Spaces 2018-02-20 20:56:25 +02:00
Kostas Missos a898b6ead7 DPI Aware (Win7, 8.1, 10)
Make the form blur no more!

Fix all sizes and implement mechanism for auto sizing.

Additionally initialize all control fonts instead of from parent fonts, to fix textboxes/labels and more.

For now, some text can overlap for 144dpi (150% scaling) and higher. But even then, it's mostly usable.
2018-02-20 20:41:05 +02:00
Kostas Missos 8fcc0a398f Upgrade to .Net4.7.1 and Win10 SDK (build16299)
dpiaware preparation
2018-02-20 20:28:01 +02:00
Kostas Missos 04076de71e Update JC Color Picker v1.6.2
Fixed some logic and layout to better behave in high dpi screens
2018-02-20 20:24:18 +02:00
Kostas Missos b7b4da3974 Bugfixes and some refactoring 2018-02-20 20:21:35 +02:00
Kostas Missos 4cc82e4360 Add info about binary releases 2018-02-18 15:34:43 +02:00
Kostas Missos 5c97ce558e Let the app blur
Allow the app to not autoscale for now.

This will avoid problems with clipping, until it's made DPI aware anyway.
2018-02-12 16:52:30 +02:00
Kostas Missos 42e7a064c6 Add VS2017 solution & project files
Retain compatibility with VS2017,  .NET 4.5.2 and Win 8 SDK

Add VS2017, .NET 4.7.1 and Win 10 SDK for full DPI Awareness V2 support to the UI.
2018-02-12 16:06:23 +02:00
Kostas Missos fb9bdc6cdf Merge pull request #7 from CTCaer/new-color-picker
[UI] Replace WinForms ColorDialog with Joy-Con Color Picker v1.5.3
2018-02-11 10:41:27 +01:00
Kostas Missos 8d3d70eb12 Version 2.8.2 update
Finalize new color picker changes
2018-02-11 11:38:48 +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 d8a977fd68 Initial color picker base project
The new dialog color picker is based on work done by Danny Blanchard.

Project: Adobe Color Picker Clone 1
Original version: 3/28/2005
2018-02-11 09:54:06 +02:00
Kostas Missos f3f2385e0a Version 2.5.1 update 2017-11-01 01:22:06 +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 acde95e08c Add status bar and Refresh/Disconnect
And move Temperature and battery there.
Also added battery voltage
2017-10-09 01:48:27 +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 0bead3b735 Add MIT License 2017-09-16 15:00:43 +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
Kostas Missos 670031831f Merge pull request #2 from wormyrocks/master
Fixed mistake in ordering of accel data bytes
2017-09-11 22:22:19 +03: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 d5ba868738 Add Analog Stick calibration info
The decoded stick calibration defines the center of the stick (X,Y) and the ranges for X-/Y- and X+/Y+ Axis
2017-08-24 05:44:40 +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 7dd1139b31 Cosmetics and bug fixes 2017-08-18 03:03:02 +03:00
Kostas Missos 0118fad3b4 Simplify Option window logic & add the vib player 2017-08-18 03:01:19 +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 dff44c488c Add SN backup mechanism inside SPI 2017-08-17 20:28:25 +03:00
Kostas Missos 0f48e6dabe Add battery percent and expert debug mode 2017-08-17 01:24:17 +03:00
Kostas Missos 290ab2119e Fix annowing designer bugs and optimize images 2017-08-15 04:49:33 +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
Kostas Missos cfa0f6c54e Move resources where they belong 2017-08-15 01:42:26 +03:00
Kostas Missos cf23460442 Version update 1.5.2
Additionally:
It's now easier to design.
Bugfixes
2017-08-11 02:28:01 +03:00
Kostas Missos 03288fd6e3 Revamp Debug option
Added sent subcommand overview.
Allow for a 25byte argument to be sent.
2017-08-11 02:24:57 +03:00
Kostas Missos dee3c6557f Fix backup validation for new Joy-Con
New Joy-Cons come with only the 3.48 fw in DS1. DS2 is empty.
2017-08-10 18:30:52 +03:00
Kostas Missos 01c7121b51 Update README.md 2017-08-09 19:37:51 +03:00
Kostas Missos dc176a9b4f Initial commit v1.5.1 + usb test 2017-08-09 19:33:03 +03:00
Kostas Missos b7f3be6f88 Initial commit 2017-08-09 19:28:28 +03:00