Back to Home

DeskThang CLI Commands and Usage

Getting Started

To use DeskThang, follow these steps:

  1. Plug DeskThang into your host computer using a USB cable.
  2. Look for a TTY interface:
    • On Mac: ttyusbmodem
    • On Linux: ttyACM0
  3. Once connected, you can start using the DeskThang commands in your terminal.

Note: You may need to use sudo to access the USB interface (/dev/tty*).

Installing DeskThang

To install DeskThang and access its CLI commands, follow these steps:

  1. Clone the DeskThang repository:
    git clone https://gitlab.com/nemofoo/deskthang
  2. Navigate to the host directory:
    cd deskthang/host
  3. Build the project using Zig:
    sudo zig build
  4. Run the help command to see available options:
    ./zigout/host/deskthang help

Use these commands to control and interact with your DeskThang device. Remember, you can always use deskthang help in your terminal to view available commands.

Help

Display available commands and usage information

deskthang help

Display Image

Send a 240x240 png to the screen of DeskThang

deskthang image test.png

Set LED Color (Green)

Emit green light from the device

deskthang led 00ff00

Set LED Color (Purple)

Emit purple light from the device

deskthang led ff00ff

Ping

Test connectivity and expect a pong command from the DeskThang

deskthang ping