You can obtain the software for the Mouse and Keyboard Emulator with Display from the GitHub repository for this project which you can find here.
The software for this project is only available for the Arduino IDE and is not available in Circuit Python. For details on how to upload software to this board using the Arduino IDE see this section of the learning guide for the TRRS Trinkey.
The sketch that you want is in the code/TRRS_KB_Mouse
folder of the GitHub repository.
Connect the board to your computer via USB and upload the sketch.
The display will show the simulated keyboard that looks like this.
We presume you're using three AT switches. One moves the cursor to the right. Another to the left and the third button selects.
You can adjust which button performs which function. In the Arduino IDE, click on the tab labeled "my_inputs.h
". At approximately line 22 you will find the following code:
//GPIO pin numbers for pushbuttons. Rearrange these to suit your application #define PREVIOUS PIN_TIP #define SELECT PIN_RING1 #define NEXT PIN_RING2
This is configured with the left AT switch called PREVIOUS connected to the TIP of the TRRS Jack, the SELECT switch is connected to RING1, and the right AT switch called NEXT is connected to RING 2. You can edit these to suit your taste. After editing, save the file and re-upload the software.
See the next page for details on how to operate the device.
Text editor powered by tinymce.