The ninth door can already be opened and as today's surprise you will find the AZ-Touch Mod with 2.8 “display, which has just come into the shop. The heart of the hobbyist and programmer beats faster. In one previous post we have already programmed TicTacToe on the UNO R3, now this is to be ported to the AZ-Touch.
Remember that you also need an ESP32 with 2x19 pins, as this is not included in the scope of delivery. At this point I recommend that ESP32 NodeMCU Module WLAN WiFi Development Board with CP2102 or that ESP32 Dev Kit C V4 unsoldered.
What is needed
- AZ-Touch Mod with 2.8 “display
- ESP32 module
- Arduino IDE in the latest version
- The TFT_eSPI library with all dependencies; we show you how to do it, among other things here.
So that you can use the AZ-Touch Mod with 2.8 “-Display, minor soldering work is necessary. You can find a small one on our homepage Blog postwho documents this work.
In addition, if not already available on your PC, install the Arduino IDE and set up the micro controller via the board manager. How to do this can be found in the free eBooks for each micro controller.
Transfer the game to the micro controller
So that you can play TicTacToe, please download the zip package from the GitHub page down. Unzip this folder and open it immediately afterwards. You will find three files there:
- ino: The program for the Arduino IDE
- c: Which the "X" and the "O" as binaries includes
- h: The configuration file for the display
Please copy the User_setup.h into the folder C: \ User \YOUR name\ Documents \ Arduino \ libraries \ TFT_eSPI, see illustration 1. It makes sense to first rename the file there with the same name, e.g. in User_Setup_old.h.
Illustration 1: Overwrite User_Setup.h
Then open the source code in the Arduino IDE and select the appropriate micro controller according to the eBook instructions. Transfer the program to the micro controller and after a restart you should see the request for calibration, see Figure 2.
Illustration 2: Calibration request on the display
Once this step has been completed, pay attention to the green arrow next to the red boxes in the corner, then you will be shown the start screen immediately afterwards, see Figure 3.
Illustration 3: TicTacToe start screen
We hope you enjoy playing.
You can find more projects for AZ-Delivery from me at https://github.com/M3taKn1ght/Blog-Repo.