Go Down

Topic: Attempted LCD tutorial (Read 547 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