-
-
Notifications
You must be signed in to change notification settings - Fork 106
Description
Hi,
I have opened this issue back in April 2018, but there is still some problems
- Within LCD I2C, the code is still incorrect, there are simple quotes instead of double quotes
Serial.println('I2C scanner. Scanning ...');
byte count = 0;
Wire.begin();
for (byte i = 8; i < 120; i++)
{
Wire.beginTransmission (i);
if (Wire.endTransmission () == 0)
{
Serial.print ('Found address: ');
Serial.print (i, DEC);
Serial.print (' (0x');
Serial.print (i, HEX);
Serial.println (')');
count++;
delay (1);
} // end of good response
} // end of for loop
Serial.println ('Done.');
Serial.print ('Found ');
Serial.print (count, DEC);
Serial.println (' device(s).');
When using I2C block, the problem exists but some strings are enclosed between double quotes (correct) and some are enclosed between double quotes.
Serial.println('I2C scanner. Scanning ...');
byte count = 0;
Wire.begin();
for (byte i = 8; i < 120; i++)
{
Wire.beginTransmission (i);
if (Wire.endTransmission () == 0)
{
Serial.print ("Found address: ");
Serial.print (i, DEC);
Serial.print (" (0x");
Serial.print (i, HEX);
Serial.println (")");
count++;
delay (1);
} // end of good response
} // end of for loop
Serial.println ('Done.');
Serial.print ('Found ');
Serial.print (count, DEC);
Serial.println (' device(s).');