2018-08-01から1日間の記事一覧

ML-808GXの圧力を変更する

#!/usr/bin/env python import sys if len(sys.argv)<2: command = "04DI " else: command = sys.argv[1] print("Command:",command) s = 0x0 for c in command: s = s - (ord(c)) ubyte = (s & (0b11110000)) >> 4 lbyte = s & 0b00001111 ubyteChar = hex(…