Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Detect state change in Din without loop - arduino Linx

$
0
0

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. 


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>