Skip to content

Commit 4016ab0

Browse files
committed
Comments updated on switching port
1 parent 1371920 commit 4016ab0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

examples/LCD_Burnin/LCD_Burnin.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ void loop()
4545
strncpy(lcdbuf, &lcdDisplay[3][0], 20); lcdbuf[20] = '\0';
4646
lcd.print(lcdbuf);
4747

48-
delay(50); // keep artitically short to test if screen corrupts with frequent writes
48+
delay(50); // keep artifically short to test if screen corrupts with frequent writes
4949
}

src/LiquidCrystal_PCF8574.h

+5-6
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class LiquidCrystal_PCF8574 : public Print
3838
public:
3939
LiquidCrystal_PCF8574(uint8_t i2cAddr);
4040
// note:
41-
// There is no sda and scl parameter for i2c in any api.
42-
// The Wire library has standard settings that can be overwritten by using Wire.begin(int sda, int scl) before calling LiquidCrystal_PCF8574::begin();
43-
41+
//
4442
// When using multiple I2C ports one can initialize with
4543
// LiquidCrystal_PCF8574 lcd(0x27); // create lcd
4644
// TwoWire myWire = TwoWire(); // create new wire instance
@@ -50,10 +48,11 @@ class LiquidCrystal_PCF8574 : public Print
5048
// lcd_port = &myWire; // Keep address to wire instance
5149
// lcd.begin(clos, rows, *lcd_port); // Initialize lcd
5250
//
53-
// and in the main program update display with
51+
// and in the main program one updates display with
5452
// # if defined(ESP8266)
55-
// Although we created multiple wire ports, in ESP8266 there is only one wire structure available
56-
// Each time we switch to different i2c port we need to switch the pins
53+
// ESP8266 is special case because there is only one wire structure available
54+
// Although we can created multiple wire interfaces we still need to specify SDA and SCL
55+
// before each transmission:
5756
// lcd_port->begin(sdaPin, sclPin);
5857
// lcd_port->setClock(100000);
5958
// lcd_port->setClockStretchLimit(200000); // 200ms, for slow devices

0 commit comments

Comments
 (0)