Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.39 KB

README.md

File metadata and controls

18 lines (10 loc) · 1.39 KB

Zwiftendo

Warning!!! this is still very much a work in progress.

Zwiftendo is a basic BLE keyboard to control the Zwift indoor cycling game from your bike handlebars. It is based on the Adafruit Feather nRF52840 Express and uses a Pimoroni Trackball for the input.

Required CircuitPython Libs:

To run correctly, this code needs you to have a copy of the following libraries in the /lib folder on CIRCUITPYTHON drive.

Usage:

Connect the nRF52840 Express to your laptop and copy code.py, pimoroni_trackball.py and the above mentioned libraries to the CIRCUITPYTHON drive. Connect up the Trackball i2c pins to the nRF53840 SCL and SDA pins. Make sure to add a 10k pull-up resistor as there are no internal ones on the i2c bus. Wire up 2 buttons from D9 and D10 to ground.

Once powered up, the device will be discoverable as a bluetooth keyboard called Zwiftendo. Once paired, the green LED at the centre of the trackball will turn blue. Now when you swipe up or down it will scroll your screen up and down. Clicking the central button will send an ENTER. Pressing button 1 will skip your media forward and button 2 should play or pause your media.