Two modules, an input Generator and a Controller.
The Generator sends a signal to increase a value in the Controller. The controller contains a loop where it checks if this value is > 0 and in that case do some stuf and reset it to zero.;
How should I connect these two modules? Sending an event seemed most intuitional, but it doesnt look like the standard way to do this.
I also read about semaphore but I'm not sure how to connect them. (I also want a monitor module to be able to print the value at some points (probably when it is reset))