Trouble with Photon and Adafruit ST7735 Library

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.setCursor(0, 0);
tft.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla");     

void loop() {


Safe Mode would be breathing magenta
Breathing cyan is normal cloud connected mode.

There are several other threads e.g.
[SOLVED] Getting the ST7735 to work with Spark

My apologies, I meant breathing magenta, not cyan.

@yemo20, that often happens when the system firmware version is not matching the version of firmware the app was compiled with. What firmware version did you select for your photon and did you give it enough time to update itself completely?

1 Like