-
Notifications
You must be signed in to change notification settings - Fork 2
Simple led example #11
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
Conversation
examples/LED/LED.ino
Outdated
#include <Arduino.h> | ||
#include "Thing.h" | ||
#include "WebThingAdapter.h" | ||
#include <Thing.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logically Thing.h
is not a system library, why did you change "
to <
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true. I don't know. Copy, paste, I think? ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor issue below.
examples/LED/LED.ino
Outdated
Serial.print("state: "); | ||
Serial.println(state); | ||
|
||
if (state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this code redundant? the pin will be written soon after the action handler execution in the loop function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true. I didn't really pay much attention to it.
@relu91 Updated it. |
Add a simple LED on/off example.