Display¶
The LCD display uses the TFT_eSPI library to show device status and network information. The content of the display changes depending on the current operating mode.
Screens
When the device is booting, the device shows:
Booting...
version
When in USB MSC mode, the display shows:
- Mode: USB MSC
- IP: The device's current IP address.
- MAC: The device's MAC address.
- Size: The total size of the microSD card.
- Files: The number of files on the microSD card.
- Used: The amount of used space on the microSD card.
When in FTP mode, the display shows:
- Mode: FTP
- IP: The device's current IP address.
- MAC: The device's MAC address.
- Size: The total size of the microSD card.
- Files: The number of files on the microSD card.
- Used: The amount of used space on the microSD card.
When in Wi-Fi Access Point mode for configuration, the display shows:
- Mode: AP
- IP: The AP's IP address (usually
192.168.4.1). - MAC: The device's MAC address.
- SSID: The name of the Access Point (
AutoConnectAP-FrameFi).
Display Orientation¶
You can change the screen orientation by modifying the platformio.ini file.
- Open
platformio.ini: Open theplatformio.inifile in the root of the project. - Find
DISPLAY_ORIENTATION: Locate thebuild_flagssection and find the-D DISPLAY_ORIENTATIONline. -
Change the Value: Change the value to one of the following:
Value Description 0Portrait 1Landscape (Default) 2Portrait Inverted 3Landscape Inverted -
Rebuild and Upload: Save the file, then rebuild and upload the firmware for the change to take effect.
Enable/Disable LCD¶
You can completely enable or disable the LCD screen backlight by modifying the platformio.ini file. This is useful for saving power if you don't need the display.
Tip
The screen can also be enabled and disabled via the web API.
- Open
platformio.ini: Open theplatformio.inifile in the root of the project. - Find
LCD_ENABLED: Locate thebuild_flagssection and find the-D LCD_ENABLEDline. -
Change the Value:
Value Description 1Enable the LCD (Default) 0Disable the LCD -
Rebuild and Upload: Save the file, then rebuild and upload the firmware for the change to take effect.
Theme¶
You can customize the color scheme of the display by selecting a Catppuccin theme in the platformio.ini file.
- Open
platformio.ini: Open theplatformio.inifile in the root of the project. - Find
custom_catppuccin_theme: Locate the[env]section and find thecustom_catppuccin_themeoption. - Change the Value: Change the value to one of the following:
Mocha(Default)MacchiatoFrappeLatte
- Rebuild and Upload: Save the file, then rebuild and upload the firmware for the change to take effect.
Note
The file catppuccin_colors.h is automatically generated. Do not edit.
References¶
- <TFT_eSPI>
- <Catppuccin>