Hello, I'm using arduino mega with Linx, I need to read the state of a Digital input , if there is a status change (0 to 1) then other part code is triggered. Of course is possible make it with a while loop and reading the input. But I wonder if is possible to do it for example with a event which is triggered automatically when there a status change in the input. In microcontroller programming this can be done easily with interruption by status change. The reason to not to use a loop constantly reading a input is resources consumed by this way.
↧