-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add some example I/O #4
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
void EmptyI2CSensor::update(){ | ||
|
||
void EmptyI2CSensor::update() { | ||
// Work to be done at each update interval |
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.
Maybe read some bytes and publish state?
|
||
void EmptySPISensor::loop() { | ||
|
||
// Work to be done at each update interval |
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.
same here
this->mark_failed(); // Mark the component as failed if the response is not | ||
// as expected | ||
return; | ||
} | ||
} | ||
|
||
void EmptyUARTComponent::loop() { | ||
|
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.
Maybe show reading the bytes while available
then calling something like parse_bytes
or whatever is more common in ESPHome
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
SSIA