If I have:
analogWrite(4, 123);
Do I need to turn the PWM off like this:
analogWrite(4, 0);
If I'd like to set pin HIGH or LOW?
digitalWrite(4, HIGH);
In practice, changing pin HIGH/LOW works without turning PWM off but I'm encountering some unexpected behavior (my ESP8266 hangs) and I wonder if that could be the problem?