mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Formatting
This commit is contained in:
parent
9373ebe353
commit
f253e80836
1 changed files with 2 additions and 7 deletions
|
@ -92,7 +92,6 @@ void SN74HC595SPIComponent::write_gpio() {
|
||||||
this->enable();
|
this->enable();
|
||||||
this->transfer_byte((*byte) ^ (*inverted));
|
this->transfer_byte((*byte) ^ (*inverted));
|
||||||
this->disable();
|
this->disable();
|
||||||
|
|
||||||
value++;
|
value++;
|
||||||
inverted++;
|
inverted++;
|
||||||
}
|
}
|
||||||
|
@ -113,12 +112,8 @@ void SN74HC595Component::write_gpio() {
|
||||||
|
|
||||||
float SN74HC595Component::get_setup_priority() const { return setup_priority::IO; }
|
float SN74HC595Component::get_setup_priority() const { return setup_priority::IO; }
|
||||||
|
|
||||||
void SN74HC595GPIOPin::digital_write(bool value) {
|
void SN74HC595GPIOPin::digital_write(bool value) { this->parent_->digital_write_(this->pin_, value); }
|
||||||
this->parent_->digital_write_(this->pin_, value);
|
void SN74HC595GPIOPin::set_inverted(bool inverted) { this->parent_->set_inverted_(this->pin_, inverted); }
|
||||||
}
|
|
||||||
void SN74HC595GPIOPin::set_inverted(bool inverted) {
|
|
||||||
this->parent_->set_inverted_(this->pin_, inverted);
|
|
||||||
}
|
|
||||||
std::string SN74HC595GPIOPin::dump_summary() const { return str_snprintf("%u via SN74HC595", 18, pin_); }
|
std::string SN74HC595GPIOPin::dump_summary() const { return str_snprintf("%u via SN74HC595", 18, pin_); }
|
||||||
|
|
||||||
} // namespace sn74hc595
|
} // namespace sn74hc595
|
||||||
|
|
Loading…
Reference in a new issue