repo time
Dependencies: mbed MAX14720 MAX30205 USBDevice
Diff: HspGuiSourceV301/Script/hsp_registerread.py
- Revision:
- 20:6d2af70c92ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HspGuiSourceV301/Script/hsp_registerread.py Tue Apr 06 06:41:40 2021 +0000 @@ -0,0 +1,31 @@ +import serial +import io +import time + +ser = serial.Serial(port='com16', baudrate=9600, timeout=1) + +ser.isOpen() + +for x in range (0, 10000): + ser.write("/MAX30001/ReadReg 18\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 18\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 18\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 10\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 10\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 10\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 15\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 15\r".encode()) + #print(ser.readline()) + #ser.write("/MAX30001/ReadReg 15\r".encode()) +#print(ser.readline()) + time.sleep(0.1) + print("Count " + str(x)) + +ser.close()