mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
13 lines
231 B
Python
13 lines
231 B
Python
import time
|
|
from pyb import UART
|
|
from modbus import ModbusRTU
|
|
uart = UART(3)
|
|
modbus = ModbusRTU(uart)
|
|
|
|
while(True):
|
|
if modbus.any():
|
|
modbus.handle()
|
|
else:
|
|
time.sleep(100)
|
|
# image processing in there
|