-
Hi, I'm trying to implement a mini keyboard (one key) that just sends F20 when pressed. I can send all the normal keys just fine and F11 works just fine but F20 does not. Looking at the source I have a feeling this cuts F20 out. (didn't debug too deeply yet) And also does this cap the keyboard to 101 keys? Hardware: Chinese digispark clone (the one that plugs directly to usb port) code #define LAYOUT_FINNISH
#include "DigiKeyboard.h"
#define BUTTONPIN PB0
void setup() {
pinMode(BUTTONPIN, INPUT_PULLUP);
DigiKeyboard.enableLEDFeedback();
}
void loop() {
if(digitalRead(BUTTONPIN) == LOW) {
// this works (yes, really needs debounce :)
// DigiKeyboard.sendKeyStroke(KEY_F11);
// this does not work
DigiKeyboard.sendKeyStroke(KEY_F20);
}
DigiKeyboard.delay(100);
} Changing the LAYOUT define does not seem to have any effect on this. And the reason for wanting to send F20 is that it is defined as mic mute by default on most linux distros :) Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Maybe, never tried to change it. |
Beta Was this translation helpful? Give feedback.
-
Ok, so changing the descriptor seems to be do the trick:
But I'm a bit perplexed as my PlatformIO has installed different version than is found on this repo. I will open a PR with that change but how does one tell platformio on vscode to get the platform from my forked repo and not the one that is shipped automatically? |
Beta Was this translation helpful? Give feedback.
-
Opened a issue for this #24 and a pr that fixes it (at least for me) #25 |
Beta Was this translation helpful? Give feedback.
Opened a issue for this #24 and a pr that fixes it (at least for me) #25