-
-
Save HaxNobody/7bde369d7a41348b8b91c1a4f358ea4a to your computer and use it in GitHub Desktop.
I managed to get elliots one working, but couldn’t work out how to add the extra 3 button.
Your code however explains each step more simply.
I am trying to remove the Pitt long press start and release the button to stop, to long press once to stop the camera and long press again to start it.
So button 1 will be mute, long hold stop video.
Button 2 raise hand
Button 3 switch to gallery view.
But I keep getting a fault (no member named) on the long press when I try to upload it.
I will keep trying!
Sorry Pitt should be push to talk
I managed to get elliots one working, but couldn’t work out how to add the extra 3 button.
Your code however explains each step more simply.
I am trying to remove the Pitt long press start and release the button to stop, to long press once to stop the camera and long press again to start it.
So button 1 will be mute, long hold stop video.
Button 2 raise hand
Button 3 switch to gallery view.
But I keep getting a fault (no member named) on the long press when I try to upload it.
I will keep trying!
I found out just now that the FastLED library is broken if you use the latest version. If you aren't using that feature, remove it to save space. Otherwise, use version 3.3.2 instead of the latest 3.3.3.
To change the long press behavior to a toggle function instead of a press-and-hold function, use sendKeyStroke instead of sendKeyPress. Also, adjust the value of setPressTicks to change how long of a delay when holding the button down before it takes action.
I think you could completely remove attachLongPressStop and its associated function since you are sending a one-shot keystroke and not holding a button that needs to be released later.
"Unfortunately, exiting a meeting with only key presses is no longer possible in Zoom, so I have removed that feature."
This still works (In Windows) Here is my code:
// This function will be called when button 1 is pressed and held down for more than 300ms.
void button1longPressStart() {
DigiKeyboard.sendKeyStroke(0); // Clear any current key presses
DigiKeyboard.sendKeyStroke(0, MOD_SHIFT_LEFT | MOD_CONTROL_LEFT | MOD_ALT_LEFT);
DigiKeyboard.delay(50);
DigiKeyboard.sendKeyStroke(KEY_Q, MOD_ALT_LEFT);
DigiKeyboard.delay(50);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}
I'm trying to get the code to work on a Mac does anyone have example KeyStrokes?
Here is the logic for Mute on a Mac
DigiKeyboard.sendKeyStroke(KEY_A, MOD_GUI_LEFT | MOD_CMD_LEFT | MOD_SHIFT_LEFT); // Toggle mute on or off in Zoom
And here is the logic for ending a meeting
DigiKeyboard.sendKeyStroke(0); // Clear any current key presses
DigiKeyboard.delay(50);
DigiKeyboard.sendKeyStroke(KEY_W, MOD_CMD_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500);
I had to add "#define MOD_CMD_LEFT 0x00000008" for the comand key
And unlike on a PC, there doesn't appear to be a zooms shortcut to bring the window into focus
Here is a Mac Version if anyone is looking for it:
https://gist.github.com/kingfisher1234/caf351bed786f9050e1fa28c3352ded9
Thank you for sharing a great project.
I modified the source code to create a macro pad for Microsoft Teams.
The following is an article in Japanese.
I don't know how much help I can be on the software side, it took me a while to figure out. I think the important part is to make sure you have the right libraries and have the digispark setup for programming, which doesn't work out of the box with arduino unless you tweak the IDE.