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?
Using Metro M0 with I2C LCD
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Using Metro M0 with I2C LCD
Try using one of these libraries instead:
https://github.com/adafruit/Adafruit-RG ... ld-Library
https://github.com/adafruit/Adafruit_LiquidCrystal
https://github.com/adafruit/Adafruit-RG ... ld-Library
https://github.com/adafruit/Adafruit_LiquidCrystal
- steve220
- Posts: 36
- Joined: Sat Sep 16, 2017 10:52 pm
Re: Using Metro M0 with I2C LCD
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.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Using Metro M0 with I2C LCD
What warning are you getting?
- steve220
- Posts: 36
- Joined: Sat Sep 16, 2017 10:52 pm
Re: Using Metro M0 with I2C LCD
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.
.
.
.
Sketch uses 32004 bytes (12%) of program storage space. Maximum is 262144 bytes.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Using Metro M0 with I2C LCD
Ah, that's the Arduino IDE being 'helpful'. As long as the code works it's safe to ignore the warning.
Please be positive and constructive with your questions and comments.