Python .readline()

后端 未结 1 1261
一整个雨季
一整个雨季 2021-01-27 10:52

First let me preface with I am new to python, no ego here. I have this code I cobbled together from various sites the ultimate goal of which being that it would output a hex co

相关标签:
1条回答
  • 2021-01-27 11:49

    I suspect that your serial port settings don't exactly match those of the board try playing with a terminal until you get the exact settings and then use those.

    NB you do not need to prepend the 0x to convert a hex value you can use int(s, 16) where s is your substring.

    0 讨论(0)
提交回复
热议问题