Jump to content
43oh

liquidcrystal_i2c library from Arduino and LCD 20X4


Recommended Posts

 I use liquidcrystal_i2c library from Arduino with Energia (10) and LCD 20X4 (from China :-))  for Tiva-C launchPad. The address of my LCD driver is 0X27. I have used in example ( Energia_HelloWorld_20_4_I2C) 2 I2C module (PD0- SCL, PD1-SDA) (default  module - 3).

PS Attention!!!!!!!!!!! I changed the lib & the example. 

LiquidCrystal_I2C.zip

Link to post
Share on other sites

http://playground.arduino.cc/Main/DS1302 runs properly with Energia and Tiva-C.

 

replace // Set your own pins with these defines !
#define DS1302_SCLK_PIN PA_4//  pin for the Serial Clock
#define DS1302_IO_PIN PA_3//  pin for the Data I/O
#define DS1302_CE_PIN PA_2//  pin for the Chip Enable 

PA4, PA3,Pa2 are used.

Link to post
Share on other sites

 I use liquidcrystal_i2c library from Arduino with Energia (10) and LCD 20X4 (from China :-))  for Tiva-C launchPad. The address of my LCD driver is 0X27. I have used in example ( Energia_HelloWorld_20_4_I2C) 2 I2C module (PA6- SCL, PA7-SDA) (default  module - 3). 

Hi StrangerM ¿can you give me a hand ? I wil really apreciate it.

 

With a fresh installed energia any example give me compile error:

[/home/stendall/Work/energia/hardware/tools/lm4f/bin/arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=80000000L, -MMD, -DARDUINO=101, -DENERGIA=11, -I/home/stendall/Work/energia/hardware/lm4f/cores/lm4f, -I/home/stendall/Work/energia/hardware/lm4f/variants/stellarpad, -I/home/stendall/Work/energia/hardware/lm4f/libraries/Wire, -I/home/stendall/Work/EnergiaSketchBook/libraries/LiquidCrystal_I2C, /tmp/build2442658220456837221.tmp/Energia_HelloWorld_20_4_I2C.cpp, -o, /tmp/build2442658220456837221.tmp/Energia_HelloWorld_20_4_I2C.cpp.o]

In file included from Energia_HelloWorld_20_4_I2C.ino:5:0:

/home/stendall/Work/EnergiaSketchBook/libraries/LiquidCrystal_I2C/LiquidCrystal_I2C.h:81:16: error: conflicting return type specified for 'virtual void LiquidCrystal_I2C::write(uint8_t)'

In file included from /home/stendall/Work/energia/hardware/lm4f/cores/lm4f/Stream.h:26:0,

                 from /home/stendall/Work/energia/hardware/lm4f/libraries/Wire/Wire.h:6,

                 from Energia_HelloWorld_20_4_I2C.ino:4:

/home/stendall/Work/energia/hardware/lm4f/cores/lm4f/Print.h:56:20: error:   overriding 'virtual size_t Print::write(uint8_t)'

 

Best regards.

Link to post
Share on other sites

Hi Stendall. There is no question. 1. Energia 11 likes to run in C:\ energia-0101E0011. 2. I am sending the example, 2 lib and the result of  the example compilation. But I am sure that you should change the location of Energia.   

Best regards.

PS I am sorry!!!!!!!! Must be for wire module 3 (default) . I have changed lib & example. I am sorry. And I use Energia 10 ( more stable). It is  working in  any directory.   

 

... LiquidCrystal_I2C lcd(0x27,PD_1,PD_0); // set the LCD address to 0x20 for a 16 chars and 2 line display

void setup()
{
Wire.setModule(3);......

post-2996-14264605374713_thumb.jpg

Wire.zip

LiquidCrystal_I2C.zip

Energia_HelloWorld_20_4_I2C.zip

Link to post
Share on other sites

Thank you very much Stranger.

I've tried in Windows  just unziping Energia in c:\ and puting your LiquidCrystal_i2C library in the apropiated library folder on the Sketchfolder. And It worked!!!!.

Now that I at least know that works, I can fight with it in Linux too. Maybe the problem it's with the 64Bits Linux version of Energia.

I didn't needed the Wire.zip.

The examples that come bundled with your library have worked fine.

I owe you one, man. Huge Thanks.

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...