import os.path from core.hidwriter import write if __name__ == '__main__': init_fixture_id_cmd = 0x22 write(filename=os.path.basename(__file__), cmd=init_fixture_id_cmd, max_len=29, isnum=False)
import os.path import sys from util.cmd_data import INIT_MAINTENANCE_TIME_CMD from core.hidwriter import write if __name__ == '__main__': try: assert len(sys.argv[1]) == 8 except: print('PROVIDE A PROPER DATE!') print('e.g.: 20180901') sys.exit(-1) INIT_MAINTENANCE_TIME_CMD = 0x23 write(filename=os.path.basename(__file__), cmd=INIT_MAINTENANCE_TIME_CMD, max_len=8, isnum=False)
import os.path from util.cmd_data import INIT_MAINTENANCE_COUNT_CMD from core.hidwriter import write if __name__ == '__main__': INIT_MAINTENANCE_COUNT_CMD = 0x24 write( filename=os.path.basename(__file__), cmd=INIT_MAINTENANCE_COUNT_CMD, )
import os.path from core.hidwriter import write if __name__ == '__main__': INIT_COUNT_LIMIT_CMD = 0x25 write( filename=os.path.basename(__file__), cmd=INIT_COUNT_LIMIT_CMD, )
import os.path from core.hidwriter import write if __name__ == '__main__': init_count_cmd = 0x21 write(filename=os.path.basename(__file__), cmd=init_count_cmd)