Skip to content

Commit

Permalink
fix i2c frequency setup
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Feb 11, 2015
1 parent a43d6ff commit ad216c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static inline uint8_t i2c_get_scl()

static inline void i2c_wait()
{
delayMicroseconds(5);
delayMicroseconds(s_i2c_delay);
}

void i2c_freq(int freq_hz)
Expand Down
1 change: 1 addition & 0 deletions variants/wifio/WifioWiring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@ extern "C" void analogWrite(uint8_t pin, int value) {

void initVariant()
{
i2c_freq(100000);
i2c_init(SDA, SCL);
}

0 comments on commit ad216c0

Please sign in to comment.