Sending to void loop() {

User avatar
humaxoid
Posts: 2
Joined: Fri Jun 18, 2021 4:51 am

Sending to void loop() {

Postby humaxoid » Fri Jun 18, 2021 5:01 am

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?

Who is online

Users browsing this forum: No registered users and 56 guests