Jump to content
43oh

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

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...