This repository provides a C library and accompanying resources to facilitate communication between STM32 microcontrollers and DWIN DGUS-II UART displays.
- Modular Design: Easy integration into existing STM32 projects.
- Advanced STM32 UART: Uses DMA transfer and Idle Line Detection of STM32 uart peripheral.
- API for display update callbacks: Uses callbacks instead of polling display VP addresses.
- Example Project: Ready-to-use STM32CubeIDE project to kickstart development.
- MCU: STM32L431VCT6
- Display: 7" COB UART Touch Panel (DMG10600T070_09WTC)
- UI Tools: DGUS and GIMP project files for customizing display interfaces.
-
Hardware:
- STM32 microcontroller development board.
- DWIN DGUS-II UART display.
- ST-Link Programmer for flashing the microcontroller.
- USB-to-UART TTL converter or SD card for updating the display.
-
Software:
- STM32CubeIDE
- DWIN DGUS Tool
- GIMP or suitable image editor.
-
Clone the Repository:
git clone https://github.com/alexantony13/dwin-stm32.git
-
Open Example Project:
- Open STM32CubeIDE.
- The exapmle project is located at
exapmles/STM32CubeIDE/dwin-stm32-testing. - Open the example project using
File > Open Projects from File System...menu option.- Note: The library is added as a linked source folder.
- Open
dwin-stm32-testing.iocfile and review the UART, Clock and GPIO settings.
-
Build and Flash:
- Compile and flash the firmware to your STM32 board.
-
Load DGUS Project:
- Open
DWIN DGUS Tool. - Open the example project:
examples\DGUS\dwin-stm32-test. - Upload to the display
- Open
-
Connect display and STM32 uart pins:
- Connect STM32 UART Tx to Display Rx
- Connect STM32 UART Rx to Display Tx
- Connect STM32 GND to display GND
- Use level shifters if needed. (If stm32 uart pins are not 5v tolerant.)
- API for writing data to VP addresses.
- API for registering display event callbacks.
- API for reading data from VP addresses.
- Implement CRC handling.
- Add utility functions for display manipulation.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to fork the repository and open a pull request with improvements or bug fixes.
For questions or support, please open an issue in the GitHub Issues section.
Happy developing with DWIN and STM32!