아래 링크와 비슷한 질문이 있습니다. 자신의 출력이 [2.00]Arduino 측에서 루프를 수행 한 후 일련 값을 저장합니다.
모양을 들어How to store value in list (python) which is coming from arduino serially?
[2.00,2.64]
[2.00,2.64,3.28] 등
그래서 내가 얼마나 궁금 true loop가 수행 된 후에 [2.00,2.64,3.28]을 사용할 수 있습니다. 그 목록에서 특정 색인을 추출하여 사용하기 때문에 마지막 부분을 사용하고 싶습니다.
누군가가 도움을 줄 수 있으면 좋겠습니다. 그렉
가능한 [순차적으로 arduino에서 오는 목록 (파이썬)에 값을 저장하는 방법?] (http://stackoverflow.com/questions/41979340/how-to-store-value-in-list-python arduino-serial에서 오는) – abhinav
정확히 동일하지는 않습니다. Adafruit NFC Shield를 사용하여 NFC 데이터를 읽습니다. arduino_data 출력을 올바르게 받았지만 while 루프, 제안 사항 밖에서이 arduino_data를 사용할 수 없습니까? – Greg
이 문제를 http://stackoverflow.com/questions/42966263/pyserial-when-it-is-the-end-of-the-line-stop-the-while-loop으로 좁히십시오. – Greg