A physical button to mute Zoom on iPad OS and Windows. Also sends keys through the Serial Monitor.
Based on twstokes/labs/zoommuter. Check out the website. Keyboard functionality based on the Bluefruit example 'hidkeyboard'.
NOTE: The mute button requires the iPad to map Option --> Command key.
This works for both iOS and Windows. The iOS mute hotkey for Zoom is Command+Shift+A. The Windows mute hotkey for Zoom is Alt+A. This presses one after the other. The one for the wrong platform is simply ignored by Zoom.
To send keystrokes, open the Serial Monitor while the device is plugged in to your computer, and type the keys you want to send into the serial monitor.
- Adafruit BLE ATmega32u4 or Adafruit Feather 32u4 BLE. I'm using the Feather.
- iPad with Zoom installed
- A button
- 10k ohm resistor to prevent floating input
- Connect up a button to the MCU. This code uses pin A0 for digital input, defined by
BUTTON_PIN
. Here's an example. - Pair the button using Bluetooth settings
- Tell iPad OS to remap Option to Command (General -> Hardware Keyboard -> Modifier Keys)
- Load up Zoom
- Hit the button!
Since the BLE device acts as a keyboard, it's simply hitting shift + alt + a. See keycodes here.
- Install PlatformIO
- Connect the MCU and run
pio run -t upload
pio device monitor
, then type some stuff. Type \r
for return.
- Monitor the serial output to make sure things are OK
- If Bluetooth starts acting flaky, reset the microcontroller using the Adafruit reset example.