***************************
ENGLISH
***************************

For the moment, this method only works under Windows.

Firmware flashed with this method is compiled with the following parameters:
- Touchscreen size: 3.2".
- touchscreen driver: ILI9341
- wifi mode: NO WIFI (can be configured later)
- A axis: disabled
- language: EN (English)

1-Once you've downloaded the .ZIP archive and decompressed it anywhere on your PC
2-Connect the ESP-32 you intend to use to download the TFT firmware to your PC, using a USB data cable.
3-Open the unzipped folder and double-click on win64_erase.bat (will erase the ESP-32 - optional if the ESP-32 used is new)
4-Let the ESP-32 deletion procedure run to completion, then press a key to close the window.
5-Double-click on win64_install_TFT_firmware.bat
6-The firmware download begins. As for the complete deletion of the ESP-32, at the end of the download press a key to close the window.
7-Disconnect the ESP-32 from the PC and mount it on the Grbl adapter board.

We've just flashed the ESP-32 with the latest version of the TFT firmware, the link to which is available in the 1st post of [url=https://www.makerfr.com/forum/viewtopic.php?t=8201]this topic[/url].
Reminder: wifi is currently disabled.

To set the ESP-32's wifi on the screen, you need to have soldered the 4-pin strip, received with the Grbl card kit, to the screen's PCB. This 4-pin strip must be soldered opposite the 14-pin yellow strip already present on the screen's PCB and on the same side of its PCB. If you're not used to soldering, or if you're ill-equipped, check that two consecutive pins of the 4 soldered pins are not in contact.

On the PC, create a new text file (.TXT). Open this file with a text file editor such as Windows Notepad or [url=https://notepad-plus-plus.org/downloads/]Notepad++[/url] and copy these lines into it

WIFI="ESP32_ACT_AS_STATION"
PASSWORD="your_password"
SSID="your access point ID"
LOCAL_IP="192.168.1.10"
GATEWAY="192.168.1.1"
SUBNET="255.255.255.0"

1-Modify the lines according to how you want to configure the TFT ESP-32 wifi, based on the explanations below AND keeping the quotation marks;
2-Save the file on your PC, renaming it wifi.cfg ;
3-Copy the saved file to the root of an SD card (blank or not, but formatted in FAT32 format);
4-Insert the SD card into the memory card reader at the rear of the display;
5-Power up the display, either by connecting it to the Grbl card via the RJ-45 cable and powering up the Grbl card, or by connecting the ESP-32 from the TFT, leaving it in place on the Grbl adapter card, to a PC USB port from the microUSB socket on the ESP-32 ;
6-The screen will start up, and the wifi parameters defined in the wifi.cfg file will remain stored in the ESP-32, until you modify the ESP-32's wifi parameters again by depositing a new wifi.cfg file at the root of the SD card, and restart the screen with the SD card inserted in the rear memory card reader;
7-You can delete the wifi.cfg file from the SD card or leave it there permanently, as this won't slow down screen start-up.

For the WIFI field, you can choose between:

- NO_WIFI = No wifi connection
- ESP32_ACT_AS_STATION = the TFT's ESP-32 will connect to the box's wifi network like any other device (PC, tablet, smartphone, printer, etc.).
- ESP32_ACT_AS_AP = the TFT's ESP-32 will generate its own wifi network, independent of the box's network. This is useful when you can't pick up the box where CNC is installed.

For PASSWORD (the password must be at least 6 characters long, and may include numbers, letters and a few special characters, which are those accepted for naming files on a PC):

- if the ESP-32 is configured to connect to a box's wifi network (ESP32_ACT_AS_STATION), then the password to be entered is that of the box's wifi network;
- if the ESP-32 is configured to generate its own wifi network (ESP32_ACT_AS_AP), then the password entered will be the one used to connect to the wifi network generated by the TFT's ESP-32. If you don't want to enter a password to connect to this network, simply leave the quotation marks without spaces (PASSWORD=""). Remember that this is a wifi network generated by the ESP-32, totally independent of the box's wifi network.

For SSID:

- if the ESP-32 is configured to connect to the box's wifi network (ESP32_ACT_AS_STATION), then the SSID to be entered is the name of the box's wifi network;
- if the ESP-32 is configured to generate its own wifi network (ESP32_ACT_AS_AP), then the SSID to be entered will be the name of the wifi network generated by the TFT's ESP-32 (e.g. "HT-CNC32" -- Note that the SSID name must be at least 6 characters long, and may include ciphers, letters and a few special characters, which are accepted for file naming on a PC.

For LOCAL_IP (used to define a fixed IP address):

- if the ESP-32 is configured to connect to the box's wifi network (ESP32_ACT_AS_STATION), then the IP address entered here will be the one you need to type into your web browser to access the contents of the SD card at the back of the screen;
- if the ESP-32 is configured to generate its own wifi network (ESP32_ACT_AS_AP), then the IP address entered here will be the one you'll need to type into your web browser to access the contents of the SD card at the back of the screen, once you've connected your PC, tablet or smartphone to the wifi network generated by the ESP-32 and not to the one generated by the box.

For the rest, and only if the ESP-32 is configured to connect to the box's wifi network (ESP32_ACT_AS_STATION), I'd advise you to at least enter the address of the subnet mask (SUBNET), which for all boxes is 255.255.255.0 (unless you've changed it in your box's settings).

You can delete the LOCAL_IP, GATEWAY and SUBNET lines if you don't need them. In all cases, however, you must keep the SSID and PASSWORD lines, even if they are empty or unused (when the ESP-32 is set to NO_WIFI, for example).