due to the currently very high e-mail volume we get up to date with our blog posts this year after, which is why today's post is my first in the year 2019. Subsequently, I would like to wish all our customers a good Start to the new year.
In the last few days, some of the support questions reached regarding our TFT-Displays in connection with a NodeMCU us. The Problem here is that the supplied TFT can be Defined from the ArduinoIDE not so easy on the NodeMCU transfer. Today I would like to take only the TFT in operation, but also the short way to describe.
We start with our E-Book for the 1.8" TFT Display:
by the Way: For many of our products is a Datasheet, or the Pinout directly on the product page is available to Download.
In the E-Book, we find the following information: display drivers ST7735, max. 50mA power consumption and the wiring for the UnoR3.
The wiring on the NodeMCU transferred to we need the Pinout of the UnoR3 and the Pinout for the LoLinV3:
Since our Display over the SPI communicates to the SPI Pins of the LoLin use.
In the case of a first start-up we have, provisionally, for the following cabling decided:
|TFT Display||LoLin V3|
Now to the Software:
The ArduinoIDE provides a TFT Library. After the selection of the NodeMCU in the Board list is the Library, but not displayed, we find this under the item OFF,
we will Choose the example still appears when you Compile an error:
It seems so, as a while here are some (possibly time-consuming) Changes needed. To get quickly to your destination, it is always advisable to take a look in the library Manager of the IDE. As shown in the next image to see there is a TFT Library for the ESPs:
After the Installation, we invite, we are just one of the supplied example, TFT-graphicstest_small, high:
And see a first success:
The representation of fits but not really and we find in the example sketch in the note to the solution of the problem:
We need to have the Library on our Display tune:
on closer inspection of the file, we can also discover the proposed Pin assignment:
The correct settings to find is simply the adaptation of a line required:
Now we can use the TFT Display to easily on the NodeMCU use:
Until the next post :)