Formatting

This commit is contained in:
Greg Gibeling 2024-01-22 17:25:51 -08:00
parent 9373ebe353
commit f253e80836

View file

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