Add helper to have a print loop
parent
6417a3871f
commit
ae1a444600
1
Makefile
1
Makefile
|
@ -3,6 +3,7 @@ DEVICE := /dev/ttyUSB3
|
|||
copy:
|
||||
ampy --port $(DEVICE) put src/pinouts.py
|
||||
ampy --port $(DEVICE) put src/csms12.py
|
||||
ampy --port $(DEVICE) put src/main.py
|
||||
|
||||
connect:
|
||||
picocom $(DEVICE) -b115200
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
import time
|
||||
from csms12 import CSMS12
|
||||
|
||||
def printloop():
|
||||
csms12 = CSMS12()
|
||||
while True:
|
||||
print(csms12.getInterval())
|
||||
time.sleep_ms(500)
|
Loading…
Reference in New Issue