| 123456789101112131415161718192021222324 |
- from .BxCmd import baseBxCmd
- from .BxCmdCode import CMD_CLEAR_SCREEN
- class BxCmdClearScreen(baseBxCmd):
- def __init__(self):
- super().__init__(CMD_CLEAR_SCREEN.group, CMD_CLEAR_SCREEN.code)
- def Build(self):
- result = bytearray()
- # 写入命令组
- result.append(self.group)
- # 写入命令
- result.append(self.cmd)
- # 写入响应标志
- result.append(self.ReqResp())
- # 写入保留值
- result.append(self.r0)
- result.append(self.r1)
- return bytes(result)
- def NewBxCmdClearScreen(group, cmd):
- return BxCmdClearScreen()
|