Skip to content
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

digitalWeite( led, HIGH ) doesn't work! #40

Open
danxinzhujian opened this issue Mar 3, 2017 · 1 comment
Open

digitalWeite( led, HIGH ) doesn't work! #40

danxinzhujian opened this issue Mar 3, 2017 · 1 comment

Comments

@danxinzhujian
Copy link

I tried the code on my arduino, everything works well but "digitalWrite(led, HIGH)" has no reply. I also tried digitalRead(pin), the value is LOW all the time. Is there something wrong with Arduino library? I'm using General esp8266 module.

@allenhuffman
Copy link

I cannot speak for the esp8266, but on Arduino, as long as the led pin is defined correctly, that is all it should take:

https://www.arduino.cc/en/Tutorial/Blink?from=Tutorial.BlinkingLED

The built in LED pin is different on different devices, so you may have to customize those settings (for instance, it's pin 13 on my device, rather than 6 as this source code defaults to).

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

No branches or pull requests

2 participants