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”);
}