Due is unable to DigitalWrite to a pin once AnalogWrite has occurred


due unable digitalwrite pin once analog write has occurred.   attached simple sketch.  please let me know if missing something.   on digital write outputs 3.299 volts 10 seconds outputs pwm of 1.608 continuously.  it not produce digital output once analog write occurs.   have tried on 2 dues.   works fine on uno , mega 2560.





quote




void setup()
{
  pinmode(4,output);
}


void loop()  {
  digitalwrite(4, high); // digital
  delay (10000);


  analogwrite(4,124);   // pws mode
  delay (10000);

  digitalwrite(4, high); // digital
  delay (10000);


}










not code shouldn't work, newb don't understand why want this. asking education.


Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > Due is unable to DigitalWrite to a pin once AnalogWrite has occurred


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62