15 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
5 changed files with 2600 additions and 1242 deletions

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
# Joy-Con Toolkit
![](http://ctcaer.com/wii/jc6.png)
This image is for reference.
## Prerequisites:
**Microsoft Visual C++ 2017 (x86) Redistributable** (All Windows versions)
+1769 -744
View File
File diff suppressed because it is too large. Load diff
-7
View File
@@ -56,10 +56,3 @@ static uint32_t iron_palette[] = {
0xfffffad1, 0xfffffad4, 0xfffffcdb, 0xfffffcdf, 0xfffffde5, 0xfffffde8, 0xfffffeee, 0xfffffff6
};
//ir registers to maximize output
static uint8_t ir_registers[] = {
0x00, 0x00, 0x51, 0x00, 0x0F, 0x7C, 0x01, 0x00, 0x44,
0x01, 0x08, 0x7C, 0x02, 0x00, 0x7B, 0x02, 0x01, 0x7C,
0x03, 0x00, 0x6E, 0x03, 0x06, 0x7C, 0x04, 0x00, 0x05,
0x04, 0x05, 0x1E, 0x04, 0x13, 0x7C
};
+803 -485
View File
File diff suppressed because it is too large. Load diff
+25 -6
View File
@@ -1,6 +1,5 @@
#pragma once
#include <cstdint>
#include "hidapi.h"
using namespace System;
@@ -81,10 +80,28 @@ struct brcm_cmd_01 {
};
};
struct ir_image_config {
u8 ir_res_reg;
u16 ir_exposure;
u8 ir_leds; // Leds to enable, Strobe/Flashlight modes
u16 ir_leds_intensity; // MSByte: Leds 1/2, LSB: Leds 3/4
u8 ir_digital_gain;
u8 ir_ex_light_filter;
u32 ir_custom_register; // MSByte: Enable/Disable, Middle Byte: Edge smoothing, LSB: Color interpolation
u16 ir_buffer_update_time;
u8 ir_hand_analysis_mode;
u8 ir_hand_analysis_threshold;
u32 ir_denoise; // MSByte: Enable/Disable, Middle Byte: Edge smoothing, LSB: Color interpolation
u8 ir_flip;
};
#pragma pack(pop)
extern std::string get_sn(u32 offset, const u16 read_len);
extern s16 uint16_to_int16(u16 a);
extern void decode_stick_params(u16 *decoded_stick_params, u8 *encoded_stick_params);
extern void encode_stick_params(u8 *encoded_stick_params, u16 *decoded_stick_params);
extern std::string get_sn(u32 offset, const u16 read_len);
extern int get_spi_data(u32 offset, const u16 read_len, u8 *test_buf);
extern int write_spi_data(u32 offset, const u16 write_len, u8* test_buf);
extern int get_device_info(u8* test_buf);
@@ -98,18 +115,20 @@ extern int send_custom_command(u8* arg);
extern int device_connection();
extern int set_led_busy();
extern int button_test();
extern int ir_sensor(u8* buf_image, u8 ir_res_reg, u8 ir_res_no_of_packets, u16 ir_exposure, u8 ir_leds, u8 ir_digital_gain, u8 ir_ex_light_filter);
extern int ir_sensor(ir_image_config &ir_cfg);
extern int ir_sensor_config_live(ir_image_config &ir_cfg);
extern int nfc_tag_info();
extern int silence_input_report();
int handle_ok;
int handle_ok;
bool enable_button_test;
bool enable_IRVideoPhoto;
bool enable_IRAutoExposure;
bool enable_NFCScanning;
bool cancel_spi_dump;
bool check_connection_ok;
hid_device *handle;
hid_device *handle_l;
u8 timming_byte;
u8 ir_max_frag_no;
namespace CppWinFormJoy {
class images