From fbef9670dc3562b851ba696ad40370dec48045e3 Mon Sep 17 00:00:00 2001 From: Exergist Date: Wed, 16 Jun 2021 00:19:05 -0500 Subject: [PATCH] v9.0 upload --- QMK/Compiled/bigKNOBv2_firmware.hex | 4 ++-- QMK/Source/keymap.c | 35 +++++++++++++---------------- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/QMK/Compiled/bigKNOBv2_firmware.hex b/QMK/Compiled/bigKNOBv2_firmware.hex index da8a2f0..218cad7 100644 --- a/QMK/Compiled/bigKNOBv2_firmware.hex +++ b/QMK/Compiled/bigKNOBv2_firmware.hex @@ -92,9 +92,9 @@ :1005B00083E00895823021F081E0089582E008957B :1005C00084E008951F93CF93DF930E945D09182F55 :1005D000811102C00E94BC03C4E0D0E04FEF6FEF76 -:1005E00080E00E94320B2FEF84E39CE0215080409A +:1005E00080E00E94320B2FE78AE196E021508040A4 :1005F0009040E1F700C000004FEF6FEF8BE20E94E8 -:10060000320B2FEF84E39CE0215080409040E1F7D3 +:10060000320B2FE78AE196E0215080409040E1F7DD :1006100000C00000219711F7111105C0DF91CF91A3 :100620001F910C94BC03DF91CF911F910C948A030E :1006300097FD09C020910401309105012817390761 diff --git a/QMK/Source/keymap.c b/QMK/Source/keymap.c index 2da2c98..e5e9ab3 100644 --- a/QMK/Source/keymap.c +++ b/QMK/Source/keymap.c @@ -61,22 +61,22 @@ void ChangeLedColor(void); void ToggleRgbLED(void); void ErrorFlash(void); void LightFlash(void); -void SendHID(void); +///void SendHID(void); //} -//{ CUSTOM KEYCODE DECLARATION +/* //{ CUSTOM KEYCODE DECLARATION enum custom_keycodes { - KC_SendHID = SAFE_RANGE - /* CTRLF13 = SAFE_RANGE, + CTRLF13 = SAFE_RANGE, CTRLF14, CTRLF15, - CTRLF16 */ + CTRLF16, + KC_SendHID }; -//} +//} */ //{ LAYERS @@ -234,8 +234,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = [_PRIMARY] = LAYOUT // Layer 0 ( // ENCODER_DANCE, F13, F14, F15, F16 - ///TD(ENCODER_DANCE), KC_F13, KC_F14, KC_F15, KC_F16 - TD(ENCODER_DANCE), KC_F13, KC_F14, KC_F15, KC_SendHID + TD(ENCODER_DANCE), KC_F13, KC_F14, KC_F15, KC_F16 ), [_SECONDARY] = LAYOUT // Layer 1 ( @@ -285,14 +284,14 @@ void encoder_update_user(uint8_t index, bool clockwise) //} -//{ CUSTOM KEYCODE PROCESSING +/* //{ CUSTOM KEYCODE PROCESSING // Define behavior for custom keycodes bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) // Switch statement for handling triggering keycodes { - /* case CTRLF13: // Triggering keycode is the (custom) CTRLF13 + case CTRLF13: // Triggering keycode is the (custom) CTRLF13 if (record->event.pressed) // Check if the triggering action was a physical key "press" (down) tap_code16(LCTL(KC_F13)); // Send command to "tap" (down and up events) the Left Control and F13 keys return false; // Return from this method without "normal" handling of keycode @@ -307,7 +306,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) case CTRLF16: if (record->event.pressed) tap_code16(LCTL(KC_F16)); // Send command to "tap" (down and up events) the Left Control and F16 keys - return false; */ + return false; case KC_SendHID: if (record->event.pressed) SendHID(); // Call command to send Raw HID data to host computer @@ -316,7 +315,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) return true; // Effectively process ALL other keycodes "normally" }; -//} +//} */ //{ RAW HID @@ -326,7 +325,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) // Vendor ID = 0xCEEB // Product ID = 0x0007 // Usage Page = 0xFF60 -// Usage (ID) = 0x61 +// Usage (ID) = 0x0061 //} @@ -349,19 +348,17 @@ void raw_hid_receive(uint8_t *data, uint8_t length) break; } - SendHID(); // Call method to send data to host computer + ///SendHID(); // Call method to send data to host computer } -// Method for sending data to host computer via a HID interface +/* // Method for sending data to host computer via a HID interface void SendHID(void) { uint8_t data[RAW_EPSIZE]; // Declare array for storing data for sending to host computer memset(data, 0, RAW_EPSIZE); - data[0] = 'B'; - + data[0] = 'B'; // Populate data array to send to host computer raw_hid_send(data, RAW_EPSIZE); // Call method to send data to host computer - LightFlash(); // debug -} +} */ //}