As far as I know, that is not true, but I don't have a Zero or Zero Pro, I even don't have a Due.
Are you using the newest Arduino IDE 1.6.7 from Arduino.cc ?
Did you install the Zero from the Boards Manager ?
If you enable the verbose output for compiling in settings, then you can see that the Wire library of the downloaded packages is used.
(I click in the output window part, then I do Ctrl+a and Ctrl+c and paste it in a text editor)
.arduino15/packages/arduino/hardware/samd/1.6.4/libraries/Wire/Wire.cpp
Could there be a problem with the display, or the ground, or the voltage levels, or your wires of the I2C bus ?
Is the display a 5V device ? How did you connect it to an 3.3V Arduino board ?
The M0pro is 3.3 V pin level
My LCD display is 5V. I tried under 3.3V but nothing works !
I read that I should bye a 3.3V LCD one or use a shifter 5V - 3.3 V
On the other end I am not sure about the correct library I need to use to control the LCD display via I2C bus with the M0pro ?
The very common cheap LCD 16x2 displays need 5V. They are 1.40 dollars for the LCD plus 1 dollar for the I2C add-on.
Most OLED displays and other displays can handle a larger voltage range.
The link to elecfreaks.com is a LCD display for 3.3V. That is something special and is 15 dollars.
Some possibilities:
Use the ZERO 5V pin to the LCD, and use a level converter for the I2C. You are going to need a I2C level converter anyway for a project, so you might as well buy a few. After that, you still have to check if the library will work.
Get rid of the LCD, try a 3.3V OLED. Is there a OLED library that is compatible with the ZERO ?
Buy a special 3.3V LCD display.
When you want to test the I2C, run the i2c_scanner : Arduino Playground - I2cScanner
Maybe the LCD is broken. Do you have a Arduino Uno for a quick test ?
If there is a problem with the Wire library for the ZERO, it will be fixed soon. At this moment some have less trouble with the Arduino.org software. But I'm a Arduino.cc fan, so please stay with us
Now I'm wondering which sketch can I use to display a word or sentence on the i2c lcd from my m0pro.
You provided me with the wire library for zero but I would like if possible a complete sketch for display as well.
Could you give me advise for it ?
Thanks
DR
That specific Wire library should be automatically installed and be used when the Zero is selected.
If the Wire library is working, then the normal I2C LCD library should work.
Now I put the 3.3 V - 5V bi directional shifters in place. All voltages being measured are fine.
I also ran the I2C scanner : result is surprising since I got 2 adresses for a single LCD_I2C module, connected to my M0PRO :
0x20 and 0x28 ??
Then I tried the following sketch which I found related to the I2C component MCP23008 used on my device. Two times with respectively 0x20 and 0x28 addresses, The back light is going HIGH using 0x20 address !! YES !!
, but the "HELLO WORLD" text is displayed as "<-<- Strange caracter <-<- strange caracter<-<-" !
Could you help ?
Thanks,
// MCP23008 (Adafruit LCD Backpack) #include <Wire.h> #include <LiquidTWI2.h>
LiquidTWI2 lcd(0x20);
void setup() {
lcd.setMCPType(LTI_TYPE_MCP23008); // must be called before begin()
lcd.begin(16,2);
lcd.setBacklight(HIGH); // only supports HIGH or LOW
}
void loop() {
lcd.print("Hello World!");
delay(1500);
lcd.clear();
delay(500);
}