In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run
examples/hal/halTest1. The system uses inputs and output. For this reason you will need to install a simple simulator, see simulator. The following command will run the example
$ ./halTest1 -c HalTest1Config.json
This examples creates a small control system with a couple of peripheral input and output blocks as shown below.
The dashed lines denote the feedback of the signals by the simulator.
The main sequence alters the values on digital and analog outputs periodically. A separate periodic task logs the digital and analog inputs.
invertedand we get the logical inversion of digital output 0. The value of digital input 0 changes every 5 seconds.