This folder contains minimal Python examples of LECO actors for PyMoDAQ, mainly intended for learning how to implement the LECO protocol.
Two versions are provided:
- modern/ – With type hints and f-strings, to better understand how to interact with LECO.
- compatibility/ – For compatibility with Python <3.5 (no type hints, no f-strings).
Both versions implement the same logic and differ only in syntax/compatibility.
Each version contains:
- instrument.py: Provides JSONActuator and JSONDetector, interfaces between a Python driver/wrapper and the LECO protocol logic.
- network.py: Interface to the LECO communication layer.
- actuator.py: Entry point to run the actuator
- detector.py: Entry point to run the detector