You are reading a single comment by @user51876 and its replies. Click here to read the full conversation.
  • I still can't understand the sence of the first setTimeout.
    Why not write:

    analogWrite(C8, 0.5 , {freq : 2000});
    setTimeout(function() {digitalRead(C8);}, 200);
    

    ?
    And why code

    setTimeout("print(1)",2000);
    setTimeout("print(2)",1000);
    

    prints
    1
    2
    without delay?

About

Avatar for user51876 @user51876 started