Using Metro M0 with I2C LCD

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Using Metro M0 with I2C LCD

Post by steve220 »

I'm trying to port a project from an UNO to the Metro M0 Express. The project uses a 20X4 LCD module working via I2C. It works fine with the UNO. When compiling for the M0, I get a warning that the LiquidCrystal_I2C library is not compatible. The project compiles OK and uploads, but the LCD doesn't work. I've also tried the adafruit_liquidcrystal library and the HelloWorldI2C example file, but that doesn't work either. I've also tried adding a logic shifter to the scl and sda pins connected via A5 and A4.

Any thoughts on getting the LCD to work with the Metro M0 board? Is there a different library I should be using?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using Metro M0 with I2C LCD

Post by adafruit_support_mike »


User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Re: Using Metro M0 with I2C LCD

Post by steve220 »

Thanks. I got the LCD working fine with the liquidcrystal_I2C library. Pins A4 and A5 wouldn't work, but the hardware I2C pins worked after using a level shifter. I still get a compiler warning, but everything works fine.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using Metro M0 with I2C LCD

Post by adafruit_support_mike »

What warning are you getting?

User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Re: Using Metro M0 with I2C LCD

Post by steve220 »

WARNING: library LiquidCrystal_I2C claims to run on (avr) architecture(s) and may be incompatible with your current board which runs on (samd) architecture(s).

.
.
.
Sketch uses 32004 bytes (12%) of program storage space. Maximum is 262144 bytes.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using Metro M0 with I2C LCD

Post by adafruit_support_mike »

Ah, that's the Arduino IDE being 'helpful'. As long as the code works it's safe to ignore the warning.

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”