Skip to content

Commit

Permalink
Fix typo in i2c_bit_bang::init
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckeogh committed Mar 29, 2023
1 parent 6894417 commit a403fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i2c_bit_bang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void i2c_bit_bang::init() {
// Therefore, clock stretching is not supported.
gpio_set(scl_port, scl_pin);
gpio_mode_setup(scl_port, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, scl_pin);
gpio_set_output_options(sda_port, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, sda_pin);
gpio_set_output_options(scl_port, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, scl_pin);

// SDA is configured as open-drain, so it's only driven on low.
gpio_clear(sda_port, sda_pin);
Expand Down

0 comments on commit a403fd0

Please sign in to comment.