The idea was to use Circuitpython on a Seeeduino-XIAO to make a switch (button) and use an iPad on iOS with Switch Control
- Seeeduino-XIAO
- USB C Cable
- Cable to short pins
- Switch/button
NB: I use D0
as input, but it could be D1, D2, etc ...
This firmware has been modified to work with iOS so you need this one to flash your board and use circuitpython.
It's your python code, where the logic is.
You’ll need to add some CircuitPython library into the lib
folder on your CIRCUITPY drive. You can directly copy the directory adafruit_hid
or get the following files __init__.mpy
, keyboard_layout_us.mpy
, keyboard.mpy
and keycode.mpy
(directory adafruit_hid
) from the CircuitPython library bundle
Follow Apple guide -> Switch control
You only need to connect your Seeduino-XIAO to your computer and short two pins. For more details you can refer to these two links :
Yes but it will only work on MacOS, Windows (never tried Android and Linux), but not on iOS. To work on iOS, you need to use a modified firmeware -> Adafruit forum
Look at Andy's work for exemple -> seeeduino xiao circuitpython usb hid macro keypad