This is the code for my bluetooth page turner project, which is intended to be used with the ForScore app on my iPad. This project uses an Adafruit ItsyBitsy BLE board, their backpack for allowing it to be powered by a lipo battery, and a couple of buttons.
I've got the buttons connected to board.D7 and board.D9 on my project, but it can be to any of the digital IO pins on the board. This is also configurable in the main PageTurner class.
- Clone this repo
- Copy all files over to your CircuitPython board
- It should immediately begin advertising as a BLE when it gets power. It'll show up as something like
CIRCUITPY855. You can connect to it using your phone/tablet's bluetooth settings. - Once connected, the two buttons will function as a bluetooth keyboard sending the arrow left or arrow right keys to the device.