Added additional formatting for clarity
This commit is contained in:
parent
25f14de8b9
commit
88e5024585
3
droid.py
3
droid.py
|
@ -7,6 +7,7 @@ class Droid():
|
||||||
print("Initializing")
|
print("Initializing")
|
||||||
self.disabledLeds = 0x00
|
self.disabledLeds = 0x00
|
||||||
self.profile = profile
|
self.profile = profile
|
||||||
|
|
||||||
async def connect(self):
|
async def connect(self):
|
||||||
timeout=0.0
|
timeout=0.0
|
||||||
print("Connecting")
|
print("Connecting")
|
||||||
|
@ -68,6 +69,7 @@ class Droid():
|
||||||
|
|
||||||
def move (self ):
|
def move (self ):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def play_sound(self, sound_id=None, bank_id=None, cycle=False, volume=None):
|
async def play_sound(self, sound_id=None, bank_id=None, cycle=False, volume=None):
|
||||||
if volume:
|
if volume:
|
||||||
self.set_volume(volume)
|
self.set_volume(volume)
|
||||||
|
@ -148,4 +150,3 @@ async def main():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user