Skip to content

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

Merged
merged 2 commits into from
Aug 31, 2021
Merged

Simple led example #11

merged 2 commits into from
Aug 31, 2021

Conversation

Citrullin
Copy link

Add a simple LED on/off example.

@relu91 relu91 changed the base branch from dev to master August 23, 2021 15:36
@relu91 relu91 changed the base branch from master to dev August 23, 2021 15:37
#include <Arduino.h>
#include "Thing.h"
#include "WebThingAdapter.h"
#include <Thing.h>
Copy link
Owner

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 <?

Copy link
Author

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? ^^

Copy link
Owner

@relu91 relu91 left a 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.

Serial.print("state: ");
Serial.println(state);

if (state) {
Copy link
Owner

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.

Copy link
Author

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.

@Citrullin
Copy link
Author

@relu91 Updated it.

@relu91 relu91 merged commit 0285086 into relu91:dev Aug 31, 2021
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

Successfully merging this pull request may close these issues.

2 participants