TextLCD_SPI undefined

Hi,

I’m driving myself insane trying to understand what I’m doing wrong.

I keep getting undefined - error 20 for TextLCD_SPI lcd
I am using the correct controller LPC1768 therefore the pins are labelled correctly.

#include “mbed.h”
#include “TextLCD.h”
SPI spi_lcd(p11, NC, p13); // SPI communication : MOSI, MISO, SCLK
TextLCD_SPI lcd(&spi_lcd, p10); // LCD object : SPI bus, SS pin

int main()
{
lcd.printf(“Hello World”);
wait(2);
lcd.cls();
lcd.printf(“Hello”);
lcd.locate(0, 1);
lcd.printf(“World”);
}

Hi there,

please, place a link to a library what you use or example what you imported and also place your code like bellow.

```
your code
```

BR, Jan

Hi,

I have just updated the library I was using it was an old version.

Thanks