Implemented goto "Test Controller Buttons" menu

This commit is contained in:
Robert Martin
2020-01-31 20:09:17 +09:00
parent 6db94676f8
commit 19eb051726
8 changed files with 256 additions and 156 deletions
+8
View File
@@ -5,6 +5,14 @@ import re
logger = logging.getLogger(__name__)
def get_bit(value, n):
return (value >> n & 1) != 0
def flip_bit(value, n):
return value ^ (1 << n)
async def run_system_command(cmd):
proc = await asyncio.create_subprocess_shell(
cmd,