Thanks to visit codestin.com
Credit goes to github.com

Skip to content

alexantony13/dwin-stm32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWIN UART Display Interface Library for STM32

DWIN STM32 DGUS Project

Docs Platform DWIN DGUS

Repo Size Code Size License

Last Commit Issues Pull Requests

This repository provides a C library and accompanying resources to facilitate communication between STM32 microcontrollers and DWIN DGUS-II UART displays.

✨ Features

  • 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.

🛠 Requirements

  • 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:

🚀 Getting Started

  1. Clone the Repository:

    git clone https://github.com/alexantony13/dwin-stm32.git
  2. 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.ioc file and review the UART, Clock and GPIO settings.
  3. Build and Flash:

    • Compile and flash the firmware to your STM32 board.
  4. Load DGUS Project:

    • Open DWIN DGUS Tool.
    • Open the example project: examples\DGUS\dwin-stm32-test.
    • Upload to the display
  5. 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.)

✅ TODO

  • 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.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Feel free to fork the repository and open a pull request with improvements or bug fixes.

📞 Contact

For questions or support, please open an issue in the GitHub Issues section.


Happy developing with DWIN and STM32!