MSP2833/MSP2834 UNO/Mega2560 Demo Instructions

1. Introduction to Testing Platform

Development board: Arduino UNO/MEGA2560

MCU: AVR_ATmega328P/AVR_ATmega2560

Frequency: 16MHz/16MHz

2. Pin connection instructions

The display module is connected to the microcontroller using a DuPont cable, with specific instructions as follows:

2.8" TFT SPI 240X320 V1.0 Capacitive Touch Module Back Pins
NumberModule PinUNO development board wiring pinRemarks
1VCC5VLCD power positive
2GNDGNDLCD Power ground
3LCD_CS10LCD selection control signal, Low level active
4LCD_RST8LCD reset control signal, Low level reset
5LCD_RS9LCD command / data selection control signal. High level: data, low level: command
6SDI(MOSI)11SPI bus write data signal(SD card and LCD screen used together)
7SCK13SPI bus clock signal(SD card and LCD screen used together)
8LED5LCD backlight control signal (If you need control, please connect the pins. If you don't need control, you can skip it)
9SDO(MISO)12SPI bus read data signal (SD card and LCD screen used together)
10CTP_SCLA5Capacitive touch screen IIC bus clock signal (modules without touch screens do not need to be connected)
11CTP_RST6Capacitor touch screen reset control signal, low-level reset (modules without touch screens do not need to be connected)
12CTP_SDAA4Capacitive touch screen IIC bus data signal (modules without touch screens do not need to be connected)
13CTP_INT7Capacitor touch screen IIC bus touch interrupt signal, when generating touch, input low level to the main control (modules without touch screens do not need to be connected)
14SD_CS4SD card selection control signal, low level active (without SD card function, can be disconnected)

Arduino MEGA2560 microcontroller test program wiring instructions

NumberModule PinCorresponding to MEGA2560 development board wiring pinRemarks
Hardware SPISoftWare SPI
1VCC5VLCD power positive
2GNDGNDLCD Power ground
3LCD_CS10LCD selection control signal, Low level active
4LCD_RST8LCD reset control signal, Low level reset
5LCD_RS9LCD command / data selection control signal. High level: data, low level: command
6SDI(MOSI)5111SPI bus write data signal(SD card and LCD screen used together)
7SCK5213SPI bus clock signal(SD card and LCD screen used together)
8LED5LCD backlight control signal (If you need control, please connect the pins. If you don't need control, you can skip it)
9SDO(MISO)5012SPI bus read data signal (SD card and LCD screen used together)
10CTP_SCLA5Capacitive touch screen IIC bus clock signal (modules without touch screens do not need to be connected)
11CTP_RST6Capacitor touch screen reset control signal, low-level reset (modules without touch screens do not need to be connected)
12CTP_SDAA4Capacitive touch screen IIC bus data signal (modules without touch screens do not need to be connected)
13CTP_INT7Capacitor touch screen IIC bus touch interrupt signal, when generating touch, input low level to the main control (modules without touch screens do not need to be connected)
14SD_CS4SD card selection control signal, low level active (without SD card function, can be disconnected)

3. Demo Function Description

This testing program includes two MCU programs, Arduino UNO and Mega2560. Each MCU program includes software spi and hardware spi function programs, which are located in Demo_UNO_Mega2560 directory, as shown in the following figure:

File explorer showing the Demo_UNO_Mega2560 directory with subfolders for Hardware SPI and Software SPI.

The testing program includes the following test items:

4. Demo Usage Instructions

Installing development tool software

Download the installation package from the Arduino official website.

Download address: https://www.arduino.cc/en/software

Download the corresponding installation package according to your PC system, as shown in the following figure (the version in the picture may not be the latest version, and the download interface may not be the latest):

Arduino IDE 1.8.19 download options for Windows, Linux, and Mac OS X.

The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. This software can be used with any Arduino board.

Refer to the Getting Started page for Installation instructions.

SOURCE CODE

Active development of the Arduino software is hosted by GitHub. See the instructions for building the code. Latest release source code archives are available here. The archives are PGP-signed so they can be verified using this gpg key.

After the download is completed, unzip and click Install.

Installing software library

After the development environment is set up, the software library used by the sample program needs to be copied to the project library directory so that the sample program can be called. The software library is located in the Demo_UNO_Mega2560\Install libraries directory, as shown in the following figure:

File explorer showing the libraries within the Demo_UNO_Mega2560 installation directory: LCDWIKI_GUI, LCDWIKI_SPI, LCDWIKI_TOUCH.

Among them:

  • LCDWIKI_GUI is a graphical library for the application layer.
  • LCDWIKI_SPI is the SPI driver for the underlying display screen.
  • LCDWIKI_ TOUCH is a touch screen driver.

The default path for the engineering library directory is C:\Users\Administrator\Documents\Arduino\libraries. You can also change the project library directory: open the Arduino IDE software, click File ->Preferences, and reset the Sketchbook location in the pop-up interface, as shown in the following figure:

Arduino IDE Preferences window showing the Sketchbook location setting.

Copy the software library to the project library directory, as shown in the following figure:

File explorer showing the Arduino libraries directory with various library folders, including LCDWIKI_GUI, LCDWIKI_SPI, and LCDWIKI_TOUCH.

Compile and Run Programs

  1. Connect the display module to the UNO or Mega2560 development board, and then power up the development board.
  2. Open any example (using clear_screen as an example), as shown in the following figure:
Arduino IDE with the clear_screen.ino file open.
  1. After opening the sample project, select the UNO or Mega2560 device, as shown in the following figure:
Arduino IDE showing the selection of the Arduino Uno board.

Select Mega2560:

Arduino IDE showing the selection of the Arduino Mega 2560 board and its processor.
  1. Set the port. If you choose Mega2560, you also need to set the processor based on the development board used, as shown in the following figure:
Arduino IDE showing the selection of the correct COM port and processor for the Arduino Mega 2560.
  1. Click the upload button to compile and download the program, as shown in the following figure:
Arduino IDE with the upload button highlighted.

If the following prompt appears, it indicates that the program has been compiled and downloaded successfully, and has already been run:

Arduino IDE output indicating successful compilation and upload.
  1. If the display module displays content, it indicates that the program has run successfully.

File Info : application/pdf, 9 Pages, 1.22MB

PDF preview unavailable. Download the PDF instead.

2.8inch SPI MSP2833 MSP2834 UNO Mega2560 Demo Instructions EN

References

Microsoft Word 2010

Related Documents

PreviewMSP2833 & MSP2834 2.8-inch IPS TFT SPI Display Module User Manual
User manual for the MSP2833 and MSP2834 2.8-inch IPS TFT SPI Display Module, detailing its interface, working principles, hardware description, example program usage, and common tool software.
PreviewMSP4030/MSP4031 4.0" TFT SPI Display Module Demo Instructions for Arduino UNO/Mega2560
This document provides detailed instructions for using the MSP4030/MSP4031 4.0" TFT SPI display module with Arduino UNO and Mega2560 development boards. It covers essential information on testing platforms, pin connections, sample program descriptions, and step-by-step guidance for setting up the development environment, compiling, and running demo programs.
PreviewESP32 Demo Instructions for MSP3525/MSP3526 LCD Modules
This guide provides detailed instructions for using demo programs with MSP3525 and MSP3526 LCD modules on the ESP32-WROOM-32E development board. It covers hardware setup, pin connections, software library installation, and running example code for embedded development.
PreviewMSP4030 & MSP4031 4.0-inch SPI TFT Display Module User Manual
User manual for the LCDWIKI MSP4030 and MSP4031 4.0-inch IPS TFT SPI Display Module, detailing its features, hardware interfaces, working principles, and software usage for development.
PreviewMSP3525 & MSP3526 3.5-inch IPS TFT SPI Display Module User Manual
Comprehensive user manual for the LCDWIKI MSP3525 and MSP3526 3.5-inch IPS TFT SPI Display Module, covering resource description, interface details, working principles, hardware circuits, example program usage, and common tool software.
Preview1.54inch OLED SSD1309 IIC Module MC154GW/MC154GB User Manual
User manual for the LCDWIKI 1.54-inch OLED SSD1309 IIC Module (MC154GW/MC154GB), detailing its features, specifications, interface, working principle, and usage with various development platforms like Arduino, STM32, Raspberry Pi, and MSP430.
PreviewMC242GX 2.42-inch OLED IIC Display Module User Manual
User manual for the MC242GX 2.42-inch OLED IIC display module by LCDWIKI, detailing its resources, interface, working principle, hardware schematics, and example program usage with the SSD1309 controller.
PreviewE32R35T & E32N35T 3.5-inch ESP32-32E Display Module Quick Start Manual
A quick start guide for the E32R35T & E32N35T 3.5-inch ESP32-32E Display Module, covering powering on, driver installation, burning the bin file, and running the program.