Skip to content

Added example how to use esphome component#6

Open
sashao wants to merge 7 commits intodanja:masterfrom
sashao:master
Open

Added example how to use esphome component#6
sashao wants to merge 7 commits intodanja:masterfrom
sashao:master

Conversation

@sashao
Copy link

@sashao sashao commented Mar 3, 2020

Added example how to use this lib with esphome and home-assistant
https://esphome.io

void doLEDs(uint8_t value) {
for (uint8_t position = 0; position < 8; position++) {
tm.setLED(position, value & 1 || leds[position]->state);
buttons_[position]->publish_state(value);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to buttons_[position]->publish_state(value & 1); for accurate button reporting!

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