移植到stm32f1,实现手动线赋码控制器功能

This commit is contained in:
ranchuan
2023-09-09 17:27:06 +08:00
parent 8d779a68f3
commit 7baa63de05
382 changed files with 36618 additions and 148064 deletions

35
python/str_code_test.py Normal file
View File

@@ -0,0 +1,35 @@
import prottcp
# s1="左侧到位检测失败"
# s2="左侧请求三码数据失败"
# s3="左侧赋码失败"
# s5="右侧到位检测失败"
# s6="右侧请求三码数据失败"
# s7="右侧赋码失败"
# print('{0x'+s1.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
# print('{0x'+s2.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
# print('{0x'+s3.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
# print('{0x'+s5.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
# print('{0x'+s6.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
# print('{0x'+s7.encode('utf-8').hex(' ').replace(' ',',0x')+'},')
def main():
port=
if __name__ == '__main__':
main()