Hello,I'd mentioned in my previous thread that I was trying to get a PID circuit output on an 8 digit ssd. But I guess it'll be more convenient getting the output on a nokia 5110 lcd display.I tried running a test code for the display, but it shows me an error I can't find the solution to.I have even attached the font.h file.Please help me out here.I can't seem to find the error.Thanks in advance.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
lcd.c: In function 'LcdInit':
lcd.c:37: error: 'P1DIR' undeclared (first use in this function)
lcd.c:37: error: (Each undeclared identifier is reported only once
lcd.c:37: error: for each function it appears in.)
lcd.c:38: error: 'BIT0' undeclared (first use in this function)
lcd.c:39: error: 'BIT1' undeclared (first use in this function)
lcd.c:40: error: 'BIT2' undeclared (first use in this function)
lcd.c:41: error: 'BIT3' undeclared (first use in this function)
lcd.c:42: error: 'BIT4' undeclared (first use in this function)
lcd.c:44: error: 'P1OUT' undeclared (first use in this function)
lcd.c: In function 'LcdWrite':
lcd.c:57: error: 'P1OUT' undeclared (first use in this function)
lcd.c:57: error: 'BIT2' undeclared (first use in this function)
lcd.c:58: error: 'BIT0' undeclared (first use in this function)
lcd.c:59: error: 'for' loop initial declaration used outside C99 mode
lcd.c:60: error: 'BIT3' undeclared (first use in this function)
lcd.c:61: error: 'BIT4' undeclared (first use in this function)
lcd.c: In function 'LcdCharacter':
lcd.c:71: error: 'for' loop initial declaration used outside C99 mode
lcd.c: In function 'LcdClear':
lcd.c:82: error: 'for' loop initial declaration used outside C99 mode
lcd.c: In function 'main':
lcd.c:96: error: 'WDTCTL' undeclared (first use in this function)
lcd.c:96: error: 'WDTPW' undeclared (first use in this function)
lcd.c:96: error: 'WDTHOLD' undeclared (first use in this function)
lcd.c:102: error: 'ADC10CTL1' undeclared (first use in this function)
lcd.c:102: error: 'INCH_10' undeclared (first use in this function)
lcd.c:102: error: 'ADC10DIV_3' undeclared (first use in this function)
lcd.c:103: error: 'ADC10CTL0' undeclared (first use in this function)
lcd.c:103: error: 'SREF_1' undeclared (first use in this function)
lcd.c:103: error: 'ADC10SHT_3' undeclared (first use in this function)
lcd.c:103: error: 'REFON' undeclared (first use in this function)
lcd.c:103: error: 'ADC10ON' undeclared (first use in this function)
lcd.c:113: error: 'ENC' undeclared (first use in this function)
lcd.c:113: error: 'ADC10SC' undeclared (first use in this function)
lcd.c:114: error: 'ADC10IFG' undeclared (first use in this function)
lcd.c:115: error: 'ADC10MEM' undeclared (first use in this function)
lcd.c:118: error: 'ADC10BUSY' undeclared (first use in this function)
LCD_NOKIA.ino (1.38 KB)