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

Pin help #28

Open
civicbynature opened this issue Jan 24, 2018 · 2 comments
Open

Pin help #28

civicbynature opened this issue Jan 24, 2018 · 2 comments

Comments

@civicbynature
Copy link

I must be missing something super simple.

                    Format: Alexa invocation name, local port no, on callback, off callback

on line " office = new Switch("office lights", 80, officeLightsOn, officeLightsOff);"

What pin is "80" ?

I can seem to figure out which pin is toggling high/low.

I have tried replacing "80" with "1", "D1" etc but can not seem to figure out how to set which pin this line in toggling.

its completely recognized by the network and alexa is saying it's turning it on and off but i can't figure out which pin is actually toggling.

Please and thank you for your great work here.

@samazw
Copy link

samazw commented Jan 24, 2018 via email

@MadMaxDallas
Copy link

At top of the file is the definition.
const int relayPin = 5; // D1 pin. More info: https://github.com/esp8266/Arduino/blob/master/variants/d1_mini/pins_arduino.h#L49-L61
Regards

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

3 participants