Files
scomm/usercfg.json
2021-08-24 19:15:58 +08:00

25 lines
1.1 KiB
JSON

{
"btn-data01": {
"hex": 0,
"title": "\u63e1\u624b\u5305",
"value": "hello"
},
"btn-data02": {
"hex": 1,
"title": "HEX\u6d4b\u8bd5",
"value": "01 02 03 04 05"
},
"btn-data03": {
"hex": 0,
"title": "\u4e2d\u6587\u6d4b\u8bd5",
"value": "\u82b1\u95f4\u4e00\u58f6\u9152\uff0c\u72ec\u914c\u65e0\u76f8\u4eb2\u3002\n\u4e3e\u676f\u9080\u660e\u6708\uff0c\u5bf9\u5f71\u6210\u4e09\u4eba\u3002\n\u6708\u65e2\u4e0d\u89e3\u996e\uff0c\u5f71\u5f92\u968f\u6211\u8eab\u3002\n\u6682\u4f34\u6708\u5c06\u5f71\uff0c\u884c\u4e50\u987b\u53ca\u6625\u3002\n\u6211\u6b4c\u6708\u5f98\u5f8a\uff0c\u6211\u821e\u5f71\u96f6\u4e71\u3002\n\u9192\u65f6\u76f8\u4ea4\u6b22\uff0c\u9189\u540e\u5404\u5206\u6563\u3002\n\u6c38\u7ed3\u65e0\u60c5\u6e38\uff0c\u76f8\u671f\u9088\u4e91\u6c49\u3002"
},
"btn-unpack01": {
"title": "HEX print",
"value": "' '.join(['%02X'%x for x in data])"
},
"btn-unpack02": {
"title": "C style print",
"value": "'\\\\x'+'\\\\x'.join('%02x'%x for x in data)"
}
}