# Control touchscreen via GCODE, API, or external app

**URL:** <https://forum.snapmaker.com/t/control-touchscreen-via-gcode-api-or-external-app/18643>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [May 13, 2021, 5:48pm UTC](https://forum.snapmaker.com/t/control-touchscreen-via-gcode-api-or-external-app/18643 "2021-05-13T17:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arueth](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/arueth/32/10529_2.png) [@arueth](https://forum.snapmaker.com/u/arueth)\
**Post date:** [May 13, 2021, 5:48pm UTC](https://forum.snapmaker.com/t/control-touchscreen-via-gcode-api-or-external-app/18643/1 "2021-05-13T17:48:02Z")

</div>

I’ve been working on an OctoPrint plugin and want to control what is displayed on the touchscreen. Is this possible via GCODE, API, or even an external app over the USB?

It would be advantageous to set the touchscreen back to the “Home” screen when a print starts to avoid accidental button presses. It would also be amazing to lock the home screen or display the cancel/stop print screen while printing.

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [May 13, 2021, 8:04pm UTC](https://forum.snapmaker.com/t/control-touchscreen-via-gcode-api-or-external-app/18643/2 "2021-05-13T20:04:00Z")

</div>

> [@arueth](#):
>
> Is this possible via GCODE, API

Yes, the API is not published, but the source for Luban can be referenced to figure out the calls.

> [@arueth](#):
>
> It would be advantageous to set the touchscreen back to the “Home” screen

AFAIK this is not possible. The API does things like execute gcode on the controller and send files.
