pySerial works fine in Python interpreter, but not standalone

后端 未结 4 1882
我在风中等你
我在风中等你 2020-12-15 23:06

Good morning! Recently I bought an Arduino board to make sort of \"light control\" in my room. Here is the code of the firmware I wrote:

int control = 0;
int         


        
4条回答
  •  生来不讨喜
    2020-12-15 23:46

    your strace output shows it opens the serial port read/write twice. The second time it writes only the chr(12), then closes the file. I don't have enough info to solve the problem for you, but perhaps this helps? or did you already figure that out?

提交回复
热议问题