Answer the question
In order to leave comments, you need to log in
How to read arduino pulseIn from multiple analogins in parallel?
In general, here I needed to read positive pulses from the analog input in the arduino, and so, as if everything were fine, there is a pulseIn function, but the fact is that it works in blocking mode, I need such a solution so that I can read several at once analog inputs for the presence of a “pulse”, but the trouble is, there are no events in the arduino, and you can’t put the analog input in a la manual synchronization mode, like in a socket, we blow the pool and run through the sockets in a loop and check the presence of something in the buffer with handles -or. In short, I googled and googled, and did not find anything. The task is the following - there is an array of classes, and each of the classes has its own unique number, an analogue of the input, more precisely several. When a pulse appears on a certain port, we immediately pull the value from another analogue of the input and throw it into the method of the desired class. If the class was one-know problems,
Answer the question
In order to leave comments, you need to log in
you can't do anything in parallel on an arduino
, only sequentially
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question