Serial Log Handler output to tft screen

Is there a way to change the output of Serial Log Handler from the Serial port to an attached TFT screen? So instead of Serial.print() it will be doing tft.print().

Nope, but you can write a log handler that can be used in place of SerialLogHandler.

BTW, if you want to use SerialLogHandler you wouldn’t use Serial.print() but the dedicated Log.xxx() functions.

@ScruffR Would you be able to direct me to any examples or should I just go and find the source on github? Thanks

You can have a look at the implementations of this community contributed hanlder
https://docs.particle.io/reference/firmware/photon/#community-log-handlers

Or this by @rickkas7

1 Like

Brilliant thanks!