Jump to content
Sign in to follow this  
MarcosA

TM4C123 with I2C LCD Display

Recommended Posts

Hello, everyone! Has anyone used the I2C display module with the TM4C123 Launchpad? I'm trying to use this code as a test, but I was not successful. The version of the library I am using is 1.2.1
I accept other suggestions for using the i2c display. 

Thanks in advance! 


The code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Start the I2C address at 0x27 position
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE);
 
void setup()
{
 lcd.begin (16,2);
}
 
void loop()
{
  lcd.setCursor(0,0);
  lcd.print("test line 1");
  lcd.setCursor(1,1);
  lcd.print("test line 2");
}

The error: 

In file included from C:\Users\Marcos\Documents\Energia\libraries\LiquidCrystal\FastIO.cpp:32:0:

C:\Users\Marcos\Documents\Energia\libraries\LiquidCrystal\FastIO.h:38:52: fatal error: pins_arduino.h: No such file or directory

 #include <pins_arduino.h> // pleasing sanguino core

                                                    ^

compilation terminated.

exit status 1

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×