Pages: [1]   Go Down
Author Topic: Attempted LCD tutorial  (Read 325 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 87
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1200450329;start=all
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1189780631
Logged

Pages: [1]   Go Up
Jump to: