Hi.
I can not figure out where is the problem in this lib files.
I downloaded and installed two different lcd libs ( for 3 wire connection ) and i get error in compiling, on both of them.
1.)
// Example use of LCD3Wire library
// Almost a carbon-copy of LCD4BitExample.pde
#include <LCD3Wire.h>
// Arduino pins
#define LCD_LINES 1 // number of lines in your display
#define DOUT_PIN 11 // Dout pin
#define STR_PIN 12 // Strobe pin
#define CLK_PIN 10 // Clock pin
#define LED_PIN 13 // we'll use the debug LED to output a heartbeat
//create object to control an LCD.
LCD3Wire lcd = LCD3Wire(LCD_LINES, DOUT_PIN, STR_PIN, CLK_PIN);
//some messages to display on the LCD
char msgs[6][15] = {"apple", "banana", "pineapple", "mango", "watermelon", "pear"};
int NUM_MSGS = 6;
void setup() {
lcd.init();
//optionally, now set up our application-specific display settings, overriding whatever the lcd did in lcd.init()
//lcd.commandWrite(0x0F);//cursor on, display on, blink on. (nasty!)
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH); //light the debug LED
//pick a random message from the array
int pick = random(NUM_MSGS);
char* msg = msgs[pick];
lcd.clear();
lcd.printIn(msg);
delay(1000);
digitalWrite(LED_PIN, LOW);
//print some dots individually
for (int i=0; i<3; i++){
lcd.print('.');
delay(100);
}
//print something on the display's second line.
if(LCD_LINES>1){
lcd.cursorTo(2, 0); //line=2, x=0.
lcd.printIn("Score: 6/7");
delay(1000);
}
//scroll entire display 20 chars to left, delaying 50ms each inc
lcd.leftScroll(20, 50);
}
//---------------------------------------------------------------
Arduino: 1.6.5 (Linux), Board: “Arduino Uno”
/home/mack/Arduino/libraries/LCD3Wire/LCD3Wire.cpp:32:57: fatal error: WConstants.h: No such file or directory #include “WConstants.h” //all things wiring / arduino
^
compilation terminated.
Multiple libraries were found for “LCD3Wire.h”
Used: /home/mack/Arduino/libraries/LCD3Wire
Not used: /home/mack/Arduino/libraries/LCD3Wire_old
Error compiling.
2.)
Second one is LCD3pin lib.
I get some error that there is no name for that type ( like name space error )
Regards !