This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import datetime | |
import time | |
port = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=2.0) | |
port.write(b'\x42\x4D\xE4\x00\x01\x01\x74') | |
def read_pm_line(_port): | |
rv = b'' |