Mirror of infinity (Input=Output)

In this example, we mirror inputs to outputs in a loop. The DIO module in piCtory must be configured with Inputs: 19 / Outputs: 17. Thus, the inputs and outputs are combined into one word and are accessible as two bytes ().

We have integrated the cProfile here, so you can check the performance on the RevPi. This can be done with any program, but it should be removed from the release: D

We use an endless loop here! At the beginning of the loop, we read all inputs from the process image into our buffer, process the values, and write the set outputs back from the buffer to the process image.

We have included the signals, so that the program can exit cleanly by Ctrl + C, because if end = True, the loop will end!