Go Down

Topic: Liquid Crystal Library (Read 1 time) previous topic - next topic


I am somewhat new to this so sorry if this is kind of dumb. I am having a bit of a problem. I am trying to use the Liquid Crystal library. I copied the code from the website under this tutorial and tried to compile it. When I do I get the following:

LiquidCrystal.cpp:8: error: declaration of C function 'void pinMode(int, int)' c
onflicts with
C:/arduino-0009/lib/targets/arduino/wiring.h:74: error: previous declaration 'vo
id pinMode(uint8_t, uint8_t)' here
LiquidCrystal.cpp:9: error: declaration of C function 'void digitalWrite(int, in
t)' conflicts with
C:/arduino-0009/lib/targets/arduino/wiring.h:75: error: previous declaration 'vo
id digitalWrite(uint8_t, uint8_t)' here
LiquidCrystal.cpp:10: error: declaration of C function 'int digitalRead(int)' co
nflicts with
C:/arduino-0009/lib/targets/arduino/wiring.h:76: error: previous declaration 'in
t digitalRead(uint8_t)' here
o: In function `setup':
undefined reference to `LiquidCrystal::init()'o: In function `__static_initializ
ation_and_destruction_0(int, int)':

Can anyone help


Sep 14, 2007, 05:33 pm Last Edit: Sep 14, 2007, 05:38 pm by imagitronics Reason: 1
Open LiquidCrystal.cpp and modify the following lines:

Code: [Select]
extern void pinMode(int, int);
extern void digitalWrite(int, int);
extern int digitalRead(int);


Code: [Select]
extern void pinMode(uint8_t, uint8_t);
extern void digitalWrite(uint8_t, uint8_t);
extern int digitalRead(uint8_t);

I just tried it, and it worked for me.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131