We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, tell me how to write the code to execute the keys: CTRL+C, CTRL+V and SHIFT+ALT?
CTRL+C
CTRL+V
SHIFT+ALT
The text was updated successfully, but these errors were encountered:
#include <TrinketHidCombo.h> #define USB_CFG_DEVICE_NAME 'S', 'o', 'k', 'o', 'l', 'o', 'v' 's', 'k', 'y', ' ','P','A','D', #define USB_CFG_DEVICE_NAME_LEN 15 #define PIN_BTN_A 0 #define PIN_BTN_B 2 void setup() { pinMode(PIN_BTN_A, INPUT_PULLUP); pinMode(PIN_BTN_B, INPUT_PULLUP); TrinketHidCombo.begin(); } void loop() { uint32_t now = millis(); if (!digitalRead(PIN_BTN_A) && !digitalRead(PIN_BTN_B)) { TrinketHidCombo.pressKey(KEYCODE_MOD_LEFT_CONTROL, KEYCODE_A); } else { if (!digitalRead(PIN_BTN_B)) { TrinketHidCombo.pressKey(KEYCODE_MOD_LEFT_CONTROL, KEYCODE_C); } if (!digitalRead(PIN_BTN_A)) { TrinketHidCombo.pressKey(KEYCODE_MOD_LEFT_CONTROL, KEYCODE_V); } } TrinketHidCombo.pressKey(0, 0); TrinketHidCombo.poll(); delay(100); }
Sorry, something went wrong.
No branches or pull requests
Hi, tell me how to write the code to execute the keys:
CTRL+C
,CTRL+V
andSHIFT+ALT
?The text was updated successfully, but these errors were encountered: