manta/doc/io_core.md

713 B

IO Core

More details to follow here as this gets written out, for now this is just a sketch

This emulates the look and feel of an IO pin, much like what you'd find on a microcontroller.

Manta provides a Python API to control these - which allows for behavior like:

>>> import manta.api
>>> cores = manta.api.generate('manta.yaml')
>>> io = cores.my_io_core
>>> io.probe0.set(True)
>>> io.probe0.set(False)
>>> io.probe1.read()
True

The caveat being that Manta is limited by the bandwidth of PySerial, which is limited by your operating system and system hardware. These calls may take significant time to complete, and they are blocking. More details can be found in the API reference.