Chat freely about anything...

User avatar
By rith87
#24118 I am trying to get the ESP8266 to control a Sharp Memory LCD. My strategy was to combine https://github.com/adafruit/Adafruit_SH ... ry_Display with https://github.com/Sermus/ESP8266_Adafruit_ILI9341 (thanks, Sermus!)

Here's what I did:
1. Replace all software SPI bit bang arduino code in the Adafruit_SHARP_Memory_Display project with the equivalents in the HSPI driver in ESP8266_Adafruit_ILI9341.
2. Change the prescaler to 40 so that the SPI clock runs at 1 MHz
3. Control CS pin manually by setting GPIO15 as a GPIO pin

Unfortunately, the screen shows nothing. So, I have the following questions:
1. Any idea if ESP8266_Adafruit_ILI9341 works with the latest 1.2.0 SDK?
2. Any good strategies for writing and testing code for displays? Is there any way to get feedback from the displays? Or is the only strategy to whip out the scope?
3. Anyone has any ESP8266/Sharp memory LCD code stashed away somewhere?
User avatar
By rith87
#24123 I decided not to be a lazy bum and busted out the scope. Turns out that CS was flipping on and off every other bit, which is surprising considering that I set GPIO15 as a GPIO, rather than a hardware CS pin. I guess I should just hook that pin up to a normal GPIO and see if I can control it that way.
User avatar
By rith87
#24133 Screen works fine after wiring up GPIO5 to CS, instead of using the HSPI CS pin (GPIO15)!

I guess a final follow up question is if the HSPI CS pin can be configured to be controlled as a GPIO, but at least based on my experiments, it seems like it isn't possible.
User avatar
By tytower
#24137 wiki/doku.php?id=esp8266_gpio_pin_allocations
You can activate any “FUNCTION_” with pinMode(pin, FUNCTION_1)for example
pinMode(15, FUNCTION_3)in that case maybe? Hav'nt tried it myself.

I suppose you then set the INPUT/OUTPUT etc later but I don't if that is how it works
pinMode(15, OUTPUT);

If you try it please clarify