moononournation / Arduino_GFX

Arduino GFX developing for various color displays and various data bus interfaces
Other
792 stars 157 forks source link

Works fine with ESPboy (ESP8266) www.espboy.com #122

Closed ESPboy-edu closed 2 years ago

ESPboy-edu commented 2 years ago

This beautiful library works fine with my ESPboy device www.espboy.com Please add ESPboy to the "Currently Supported Dev Device"

ESPboy (ESP8266 + ST7735 128x128) www.espboy.com


#include <Arduino_GFX_Library.h>
#include <Adafruit_MCP23017.h> 

#define MCP23017ADDR 0
#define CSTFTPIN     8 

Adafruit_MCP23017 mcp;

Arduino_DataBus *bus = new Arduino_HWSPI(16 /* DC */, -1 /* CS */);
Arduino_GFX *gfx = new Arduino_ST7735(bus, -1 /* RST */, 0 /* rotation */, false /* IPS */,
    128 /* width */, 128 /* height */, 2 /* col offset 1 */, 3 /* row offset 1 */, 2 /* col offset 2 */, 1 /* row offset 2 */);

void setup(){
  mcp.begin(MCP23017ADDR);
  mcp.pinMode(CSTFTPIN, OUTPUT);
  mcp.digitalWrite(CSTFTPIN, LOW);
  gfx->begin();
}
moononournation commented 2 years ago

Welcome! But I do not have one in hand, can you give me a YouTube video demo link for PDQgraphictest?

moononournation commented 2 years ago

and have you tried using Arduino_ESP8266SPI class?

ESPboy-edu commented 2 years ago

Hello! Here are the Youtube links

  1. Arduino_ESP8266SPI https://youtu.be/Cx82XWrc8-0
  2. Arduino_HWSPI https://youtu.be/J9u70AqQktY

Arduino_ESP8266SPI is not so good Standard Arduino_HWSPI is much better

moononournation commented 2 years ago

Ok, update README and Wiki.

The result figures are how long the item run in milliseconds, so smaller is better.