Skip to content

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

Merged
merged 3 commits into from
Jul 12, 2025
Merged

Add some example I/O #4

merged 3 commits into from
Jul 12, 2025

Conversation

kbx81
Copy link
Member

@kbx81 kbx81 commented Jun 23, 2025

SSIA

void EmptyI2CSensor::update(){

void EmptyI2CSensor::update() {
// Work to be done at each update interval
Copy link
Member

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
Copy link
Member

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() {

Copy link
Member

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

@esphome esphome bot marked this pull request as draft July 9, 2025 20:14
@esphome
Copy link

esphome bot commented Jul 9, 2025

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

kbx81 and others added 2 commits July 9, 2025 19:29
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
@kbx81 kbx81 marked this pull request as ready for review July 10, 2025 07:24
@esphome esphome bot requested a review from jesserockz July 10, 2025 07:24
@jesserockz jesserockz merged commit f5f6df9 into main Jul 12, 2025
3 checks passed
@jesserockz jesserockz deleted the 20250623-add-example-io branch July 12, 2025 19:23
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