Skip to content

digitalWrite and digitalRead should cancel analogWrite enabled on a pin #2175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
igrr opened this issue Jun 21, 2016 · 1 comment
Closed

Comments

@igrr
Copy link
Member

igrr commented Jun 21, 2016

https://www.arduino.cc/en/Reference/AnalogWrite

@ghost
Copy link

ghost commented Dec 11, 2016

I'm not sure if this is related or not but if I:

setPinMode(D0, OUTPUT); // red led
setPinMode(D4, OUTPUT); // blue led

digitalWrite(D0, ...) //works fine
digitalWrite(D4, ...) //works fine

analogWrite(D0, anyVal); // led full on
// afterwards digWr on D0 stops working.
// analogWrite on D4 always turns it full on no matter what value but digWrite still works

I've only tried this on the D0, D4 leds as they are physically on this NodeMCU board.

Hardware: NodeMCU v1 esp-12e.
Arduino esp8266 v2.3
eclipse ide plugin, latest
windows 7, 64bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants