Skip to content

Arduino code that triggers a keyboard and mouse combo when it is moved on the Z axis at a certain speed

License

Notifications You must be signed in to change notification settings

seethroughlab/acc_combo_trigger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

acc_combo_trigger

Arduino code that triggers a keyboard and mouse combo when it is moved on the Z axis at a certain speed

Components

Libraries

Adafruit_ADXL343

Install right through the Libraries tool in Ardino.

Note: one thing that took me a bit of digging to find was the line "The STEMMA QT connector IO pins in Arduino are 19 (SCL1) and 22 (SDA1) and are available on Wire1." In other words, you construct the Adafruit_ADXL343 like

#include <Wire.h>
Adafruit_ADXL343 accel = Adafruit_ADXL343(0x53, &Wire1); # Address (first arg) doesn't matter apparently?

BLECombo

This one required a little digging. I started off using the ESP32-BLE-Keyboard and ESP32-BLE-Mouse libraries by T-vK, but found that they don't both work in the same sketch. Then I came across this issue: Support mouse and keyboard profile and I ended up using the ESP32-BLE-Combo library that does both. There is a more recent fork from alexz006, but I haven't had any problems with the Georgegipa fork, so I just stuck with that.

TODO

About

Arduino code that triggers a keyboard and mouse combo when it is moved on the Z axis at a certain speed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages