More on that topic in my "I made it" post.
Note that I'm using the mac native Automator utility to try to bring Teams to the foreground if it is in the background.
I posted more details in my "I made it" post, but here is my code in case it helps anyone.
But my final code is inteneded for Microsoft Teams on a mac. I did my development and flashed the digispark attiny85 from Window10 as I had issues flashing it from my mac.
I also wanted to post my code that works for 2 buttons (toggling audio and video) on Teams on a mac. Love this Ible, nice work, very clever! I could not resist making one for my home office and tried to replicate the industrial look. button press followed).ĭndKeyStroke(KEY_V, MOD_ALT_LEFT) This function will be called when the button2 was pressed 1 time (and no 2. The circuit for this one adds a second switch and pullup resistor on P2. In response to the question below "Do you think you could add a second button for the camera?": Yes! Code is below, picture above. This function will be called once, when the button1 is pressed for a long time.ĭndKeyStroke(KEY_Q, MOD_ALT_LEFT) Type out this string letter by letter on the computer (assumes US-styleĭndKeyStroke(0, MOD_SHIFT_LEFT | MOD_CONTROL_LEFT | MOD_ALT_LEFT) ĭndKeyStroke(KEY_A, MOD_ALT_LEFT) prevent missing the first character after a delay: this is generally not necessary but with some older systems it seems to This function will be called when the button1 was pressed 1 time (and no 2. put your main code here, to run repeatedly: put your setup code here, to run once:īutton1.attachLongPressStart(longPressStart1) momentary button on pin 0 with pullup resistor this will switch to the zoom application and mute it or exit on long press I used the Arduino IDE to flash the code below, you will need to add the Digistump boards with the boards manager first. I also used this library to deal with the button. I used a Digispark clone board (attiny85 microcontroller) and built off of an example sketch from the Digikeyboard library.
These are the keyboard shortcuts for the windows version of the app - I don't have a mac to test this on, but I'm sure a similar thing will work there perhaps with a couple tweaks if they keystrokes are different.Ī short press of the button sends CTRL+ALT+SHIFT followed by ALT+A, while a long press sends CTRL+ALT+SHIFT followed by ALT+Q then ENTER. We take advantage of the built-in keyboard shortcuts for Zoom:ĬTRL+ALT+SHIFT brings focus to the Zoom windowĪLT+A toggles the state of mute, if you mute is on it turns it off, and if it's off it turns it onĪLT+Q leaves a meeting or ends it if you are the host
This device simply emulates a keyboard when you plug it into your computer.