You are reading a single comment by @JumJum and its replies. Click here to read the full conversation.
  • During debugging for software PWM some jsWarn (in jstimer, function jstPinPWM) have been used.
    Looks to me, that 2nd var of same type is always shown as zero.
    See attached code, where only sequence of 2 vars is changed:

    jsWarn("duty:%f,period:%d,pulse:%d \n",dutyCycle,period,pulseLength);
    jsWarn("duty:%f,pulse:%d,period:%d \n",dutyCycle,pulseLength,period);
    
    

    Result in debug window is:
    WARNING: duty:0.5,period:100000,pulse:0
    WARNING: duty:0.5,pulse:50000,period:0

    Or is %d the wrong format ?

About

Avatar for JumJum @JumJum started