Page 1 of 1

Sending to void loop() {

Posted: Fri Jun 18, 2021 5:01 am
by humaxoid
Greetings! I need a non-standard solution. It is necessary to process the function with the following arguments in the loop digitalWrite(32, LOW);
But don't just stupidly to insert it into a permanent loop (). I want to send there by condition, so that it runs on the command from void setup () for example:
  1. if
  2. (uav...blah...blah)
  3. {
  4. //action "A"
  5. }
  6. else
  7. {
  8. //action "B" - to send the function to loop for processing
  9. }
That is, the else condition worked, then the action "B"spun in the magnifier. If the condition "A" is triggered, nothing is sent to the magnifier. Is there an example of how to implement this?