Skip to content

Commit

Permalink
v9.0 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Exergist committed Jun 16, 2021
1 parent 1be35d4 commit fbef967
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
4 changes: 2 additions & 2 deletions QMK/Compiled/bigKNOBv2_firmware.hex
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
:1005B00083E00895823021F081E0089582E008957B
:1005C00084E008951F93CF93DF930E945D09182F55
:1005D000811102C00E94BC03C4E0D0E04FEF6FEF76
:1005E00080E00E94320B2FEF84E39CE0215080409A
:1005E00080E00E94320B2FE78AE196E021508040A4
:1005F0009040E1F700C000004FEF6FEF8BE20E94E8
:10060000320B2FEF84E39CE0215080409040E1F7D3
:10060000320B2FE78AE196E0215080409040E1F7DD
:1006100000C00000219711F7111105C0DF91CF91A3
:100620001F910C94BC03DF91CF911F910C948A030E
:1006300097FD09C020910401309105012817390761
Expand Down
35 changes: 16 additions & 19 deletions QMK/Source/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
(
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -316,7 +315,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
return true; // Effectively process ALL other keycodes "normally"
};
//}
//} */

//{ RAW HID

Expand All @@ -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

//}

Expand All @@ -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
}
} */

//}

Expand Down

0 comments on commit fbef967

Please sign in to comment.