Hi all,
I wonder if anyone can help me with my code. I'm trying to get the LCD_ST7735 to work with my LPC1768. I've got the library into my code and defined the header of the lcd library. But I see no reference to SPI there (which it uses). So the code doesn't compile. Can anyone confirm to me that I do need to do the SPI thing first?
Another suspicion is that I am not initiating the LCD_ST7735 constructor correctly (as in line 7 below):
My code is like this so far...
#include "mbed.h"
#include "LCD_ST7735.h"
#include "Color565.h"
#include "SPI.h"
LCD_ST7735 tftscreen(p9,p10,p11,p5,p6,p7,p8);
int main()
{
tftscreen.clearScreen();
tftscreen.drawCircle(50,50,20,'Blue');
wait(5);
tftscreen.clearScreen();
}
Hope to have answer soon, it's so frustrating because I thought I knew C (but not C++).
Thanks in advance.
Hi all,
I wonder if anyone can help me with my code. I'm trying to get the LCD_ST7735 to work with my LPC1768. I've got the library into my code and defined the header of the lcd library. But I see no reference to SPI there (which it uses). So the code doesn't compile. Can anyone confirm to me that I do need to do the SPI thing first?
Another suspicion is that I am not initiating the LCD_ST7735 constructor correctly (as in line 7 below):
My code is like this so far...
Hope to have answer soon, it's so frustrating because I thought I knew C (but not C++). Thanks in advance.