commit c40aa38862d3805aff6a84692dbbd9919bcedd62 parent 1fe1182ba37e55a84169a82931e3387ff1f0f3e6 Author: Daniel Barlow <dan@telent.net> Date: Sun, 11 Dec 2022 10:42:35 +0000 improve instructions Diffstat:
| M | README.md | | | 18 | ++++++++++++++++++ |
| M | csc.py | | | 4 | +--- |
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md @@ -7,3 +7,20 @@ Perhaps useful if you have a stationary bike of some kind and want to put the vital statistics on a big screen instead of on your handlebar.  + +## How to use + +First you need to identify bluetooth address of your bike sensor(s). +Spin the wheel to wake it up, then run + +```sh +$ bluetoothctl scan on +Discovery started +[CHG] Controller 24:FD:52:00:ED:F1 Discovering: yes +[NEW] Device C2:35:5D:F2:F4:0F Giant Combo +[CHG] Device 98:06:3A:15:B7:BA RSSI: -82 +^C +$ bluetoothctl connect C2:35:5D:F2:F4:0F +``` + +Now +\ No newline at end of file diff --git a/csc.py b/csc.py @@ -111,9 +111,7 @@ class Biscuit: pygame.display.flip() - -bike_address = 'C2:35:5D:F2:F4:0F' -bike = BLE_GATT.Central(bike_address) +bike = BLE_GATT.Central(sys.argv[1]) bike.connect() app = Biscuit()