Skip to content

Commit

Permalink
🐛 Set clock correct polarity upon creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaliaLabor committed Aug 31, 2024
1 parent 534fa4e commit e54b8ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bit_bang_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ bit_bang_spi::bit_bang_spi(pins const& p_pins,
{ .resistor = hal::pin_resistor::none, .open_drain = false });
m_cipo->configure({ .resistor = hal::pin_resistor::pull_up });
hal::soft::bit_bang_spi::driver_configure(p_settings);
m_sck->level(m_polarity);
}

// private
Expand Down

0 comments on commit e54b8ba

Please sign in to comment.