HOW TO USE
HARDWARE CONFIGURATION
• If there is ICSP interface on Arduino board, set the SPI Config switch onto ICSP position.
(default)
• If Arduino board has no ICSP interface, set the SPI Config switch onto the position that
SCLK\D13, MISO\D12, MOSI\D11
EXAMPLES
We provide Arduino UNO examples and XNUCLEO-F103RB examples for this screen.
ARDUINO EXAMPLES
1. Download the examples: 4inch TFT Touch Shield code.7z, and copy the libraries which are in
Arduino\lib folder of examples to the libraries folder which is under the installation directory
of Arduino IDE.
2. Before running the LCD_ShowBMP code, copy the pictures which is in the PIC folder to SD
card.
3. Open the LCD_ShowBMP project with Arduino IDE, download to Arduino board.
4.
The Touch code use four sets of calibration values, could support painting operation in four
directions. There are five colors which could be selected on the right. The size of paintbrush
is 9 pixels by default. Users can also click the AD on screen to calibrate:
Please use the stylus click the cross on the screen. The cross will always move until the
screen adjustment is completed.
5. Following the prompt, click the red sign “+” one by one to finish the calibration.
STM32 E XAMPLES
1. Before running the code that display image. copy the pictures which is in the PIC folder to
SD card. Then insert the LCD to NUCLEO or XNUCLEO board.
2. Open the project with MDK, download to the NUCLEO or XNUCLEO development board.