Go Down

Topic: Attempted LCD tutorial (Read 490 times) previous topic - next topic


HI i attempted the LCD tutorial at http://www.arduino.cc/en/Tutorial/LCDLibrary when i compiled i got:

LiquidCrystal.cpp:8: error: declaration of C function 'void pinMode(int, int)' conflicts with
C:/Documents and Settings/Bob/Desktop/arduino-0009-win/arduino-0009/lib/targets/arduino/wiring.h:74: error: previous declaration 'void pinMode(uint8_t, uint8_t)' here
LiquidCrystal.cpp:9: error: declaration of C function 'void digitalWrite(int, int)' conflicts with
C:/Documents and Settings/Bob/Desktop/arduino-0009-win/arduino-0009/lib/targets/arduino/wiring.h:75: error: previous declaration 'void digitalWrite(uint8_t, uint8_t)' here
LiquidCrystal.cpp:10: error: declaration of C function 'int digitalRead(int)' conflicts with
C:/Documents and Settings/Bob/Desktop/arduino-0009-win/arduino-0009/lib/targets/arduino/wiring.h:76: error: previous declaration 'int digitalRead(uint8_t)' here
o: In function `setup':
undefined reference to `LiquidCrystal::init()'o: In function `__static_initialization_and_destruction_0(int, int)':

I followed the eample straight up, no changes what so ever, and thats just the first sketch! Has any one else experianced this?


I didn't bother to search for it. But if I am right, in liquidcrystal.cpp you need to change the uint8_t into int. The info should be somewhere in the forum.
Ok, did the search for you:

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