From 6e09066c679ca62634e7d9f732c8ff8e93b29cdc Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Wed, 22 Jun 2016 22:23:52 -0700 Subject: [PATCH] ESP8266: Switch i2c and digitalout to a single I/O write --- targets/esp8266/i2c_master.c | 8 ++++---- targets/esp8266/jshardware.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/targets/esp8266/i2c_master.c b/targets/esp8266/i2c_master.c index 004b82662..c82cc770d 100644 --- a/targets/esp8266/i2c_master.c +++ b/targets/esp8266/i2c_master.c @@ -73,10 +73,10 @@ i2c_master_setDC(uint8 SDA, uint8 SCL) m_nLastSCL = SCL; //I2C_MASTER_SDA_SCL(SDA, SCL); - GPIO_REG_WRITE(GPIO_OUT_W1TS_ADDRESS, SDA< ESP8266: jshPinSetValue pin=%d, value=%d\n", pin, value); - GPIO_REG_WRITE(GPIO_OUT_W1TS_ADDRESS, (value&1)<