rename file to wobble
This commit is contained in:
parent
cd243353a9
commit
f55f7a039d
@ -20,7 +20,11 @@ Discovery started
|
||||
[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
|
||||
$ bluetoothctl connect C2:35:5D:F2:F4:0F
|
||||
```
|
||||
|
||||
Now
|
||||
Now you can start the app
|
||||
|
||||
```sh
|
||||
$ python wobble.py C2:35:5D:F2:F4:0F
|
||||
```
|
@ -14,8 +14,6 @@ import pygame.freetype
|
||||
from pygame.locals import *
|
||||
|
||||
class CadenceListener:
|
||||
csc_feature = '00002a5c-0000-1000-8000-00805F9B34FB'
|
||||
|
||||
prevCtime = 0
|
||||
prevWtime = 0
|
||||
prevWrevs = 0
|
||||
@ -74,7 +72,7 @@ class CadenceListener:
|
||||
self.prevWrevs = wheelRevolutions
|
||||
self.elapsedTime = (self.elapsedTime or 0) + (millis / 1024.0)
|
||||
|
||||
class Biscuit:
|
||||
class Wobble:
|
||||
listener = CadenceListener()
|
||||
|
||||
def __init__(self):
|
||||
@ -116,7 +114,7 @@ class Biscuit:
|
||||
|
||||
bike = BLE_GATT.Central(sys.argv[1])
|
||||
bike.connect()
|
||||
app = Biscuit()
|
||||
app = Wobble()
|
||||
|
||||
csc_measurement = '00002a5b-0000-1000-8000-00805F9B34FB'
|
||||
bike.on_value_change(csc_measurement, app.listener.process)
|
Loading…
Reference in New Issue
Block a user