Go Down

Topic: new LiquidCrystal library problems (Read 4 times) previous topic - next topic

Z.K.


Thanks everyone for your help. The serial LCD with the 595 shift register is working now so I will mark this conversation as solved.



If I could figure out how to mark it as solved that is. 

fm

Great to read you sorted it out. Good stuff.

Just put in the title [SOLVED]
   

wwbrown

It seems I am having the same problem as ZK in terms of the library not being found and it is driving me a little crazier.  I downloaded the the zip file from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads and unzipped it into the following directory C:\Program Files (x86)\arduino-1.0\libraries\LiquidCrystal I renamed the original LiquidCryrstal directory in case I need it again.  When I restarted the IDE the examples are found so I thought great we are cooking with gas.  I loaded the example HelloWorld_SR as I have shift register on the LCD and have had it working under a different library.

Compiled the HelloWorld_SR skecth and got the following error 'class LiquidCrysatl_SR' has no member named 'createChar'  I commented out the line with createChar to see if it was only that function and got the same error except this time it was for 'home'
Code: [Select]
#include <Wire.h>
#include <LiquidCrystal_SR.h>


LiquidCrystal_SR lcd(8,7,TWO_WIRE);
//                   | |
//                   | \-- Clock Pin
//                   \---- Data/Enable Pin

// Creat a set of new characters
byte armsUp[8] = {0b00100,0b01010,0b00100,0b10101,0b01110,0b00100,0b00100,0b01010};
byte armsDown[8] = {0b00100,0b01010,0b00100,0b00100,0b01110,0b10101,0b00100,0b01010};

void setup(){

  lcd.begin(16,2);               // initialize the lcd

  lcd.createChar (0, armsUp);    // load character to the LCD
  lcd.createChar (1, armsDown);    // load character to the LCD

  lcd.home ();                   // go home
  lcd.print("LiquidCrystal_SR");
}

void loop(){
  // Do a little animation
  for(int i = 0; i <= 15; i++) showHappyGuy(i);
  for(int i = 15; i >= 0; i--) showHappyGuy(i);
}

void showHappyGuy(int pos){
  lcd.setCursor ( pos, 1 ); // go to position
  lcd.print(char(random(0,2))); // show one of the two custom characters
  delay(150); // wait so it can be seen
  lcd.setCursor ( pos, 1 ); // go to position again
  lcd.print(" "); // delete character
}


I must have done something stupid but I am at a loss to figure out what it is I did wrong.

TIA

wade

bperrybap

I'm assuming that the error(s) are a bit different or that there are additional errors/warnings
from what you reported as LiquidCrysatl_SR is  misspelled.
There may also be other errors/warnings that preceded this that are important.

My guess would be that it is due to the renaming of the old library vs eliminating it
or relocating it to another location.

If relocating the original LiquidCrystal library doesn't solve the problem,
Compile the code in verbose mode and then cut and past the errors so we
can see the exact errors and warnings.

--- bill

wwbrown

bill,

I deleted the original library and all is good.  Yes you were right that I had a spelling problem.

wade

Go Up