Hi there, I have been trying to get my photon working with a Sainsmart 1.8" tft lcd (identical to Adafruit 1.8" tft lcd). I am using the Adafruit_ST7735 library and just flashed a simple example program on the photon. It flashes without error, but the photon goes into safe mode - breathing cyan. Any thoughts?
// This #include statement was automatically added by the Particle IDE.
#include "Adafruit_ST7735/Adafruit_ST7735.h"
#define cs D4
#define dc D2
#define rst D3
Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst); // hardware spi
void setup() {
tft.initG();
tft.fillScreen(ST7735_BLACK);
tft.setCursor(0, 0);
tft.setTextColor(ST7735_WHITE);
tft.setTextWrap(true);
tft.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla");
}
void loop() {
}