trevorwslee / Arduino-DumbDisplay

DumbDisplay Ardunio Library enables you to utilize your Android phone as virtual output gadgets (as well as some very simple inputting means) for your Arduino framework (including ESP8266 / ESP32 / Raspberry Pi Pico) experiments.
MIT License
43 stars 2 forks source link

use as TFT_eSPI replacement #169

Open eadmaster opened 4 months ago

eadmaster commented 4 months ago

is it possible to use this library as a replacement for a real TFT display?

Basically i'd like to replace a global object like this and get the same output in the android app (without any TFT connected to the board):

//TFT_eSPI tft = TFT_eSPI();

DumbDisplay dumbdisplay(new DDInputOutput(115200));
FakeTFT tft = dumbdisplay.createFakeTFT(WIDTH, HEIGHT);

class GraphicalDDLayer seems to have a similar API to TFT_eSPI.

trevorwslee commented 3 months ago

An interesting idea. Will need further investigation on the feasibility.