After update firmware photon 0.4.9 Display LCD ST7735S 1.8" SPI not work why?

Display LCD ST7735S 1.8

Library

#define cs   A2
#define dc   A0
#define rst  NO_RST_PIN
#include "Adafruit_mfGFX.h"    // Core graphics library
#include "Adafruit_ST7735.h"   // Hardware-specific library
Adafruit_ST7735 display = Adafruit_ST7735(cs, dc, rst); // hardware spa


void setup() {
display.initR(INITR_BLACKTAB);
  display.fillScreen(ST7735_BLACK);
  display.setCursor(0, 0);
  display.setTextColor(ST7735_WHITE);
  display.setTextWrap(true);
  display.setRotation(3);
  display.setTextSize(1);
  display.println("test");
}

after update firmware 0.4.9 ( Photon ) my display screen show white color

@fangda01 what version of firmware were you running BEFORE you udpated to 0.4.9?

firmware 0.4.7

@fangda01, my github code is kind of old and was written for the Core. It should still work but it needs to be updated. The mfGFX library has been updated (on the IDE) and the ST7735 code mixes other platform code and uses the “SPARK” define. I’m not sure if the original arduino library has been updated so tt may be time to review things!

I’ll look at the code tonight and see if I can update it.

@fangda01

Can you try something for me please:

  1. downgrade your photon to 0.4.7, and recompile your app for that version. So that you then have a working system.

  2. Put your device in DFU mode and run particle update to update only the system firmware. Does the display still work?

The critical point is to not flash the app again after it’s working, and only change the system firmware.

Please let us know the results. I’m curious to know if it is system firmware or something changed in the application.

Thanks :smile:

1 Like