1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

fix i2c frequency setup

This commit is contained in:
Ivan Grokhotkov
2015-02-11 18:21:14 +03:00
parent ee48c36a71
commit f7b954cef7
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ static inline uint8_t i2c_get_scl()
static inline void i2c_wait() static inline void i2c_wait()
{ {
delayMicroseconds(5); delayMicroseconds(s_i2c_delay);
} }
void i2c_freq(int freq_hz) void i2c_freq(int freq_hz)

View File

@ -115,5 +115,6 @@ extern "C" void analogWrite(uint8_t pin, int value) {
void initVariant() void initVariant()
{ {
i2c_freq(100000);
i2c_init(SDA, SCL); i2c_init(SDA, SCL);
} }