The robot moves - not sure the arrows face the right way.

This commit is contained in:
Danny Staple
2022-11-10 22:25:09 +00:00
parent 80076b24bf
commit e444040b86
13 changed files with 1260 additions and 26 deletions
@@ -0,0 +1,13 @@
import asyncio
import bleak
async def run():
ble_uuid = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"
ble_name = "Adafruit Bluefruit LE"
devices = await bleak.BleakScanner.discover(service_uuids=[ble_uuid])
print(f"Found {len(devices)} devices")
print([device.name for device in devices])
ble_device_info = [device for device in devices if device.name==ble_name][0]
print(f"Found robot {ble_device_info.name}...")
asyncio.run(run())