Skip to content

777lijiaqi/UniQ-Embedded-Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 UniQ (Universal Qi) Embedded Library

中文版 (Chinese Version) | English Version

Tired of vendor-locked code? Give your embedded soul the freedom it deserves!

license release stars


😫 Are you suffering from "Vendor Lock-in"?

Imagine this: You've spent weeks writing drivers for STM32. Suddenly, your boss says: "xx, the chip price just doubled. Switch to GD32 (or some obscure MCU) by tomorrow!"

You look at your screen full of HAL_GPIO_WritePin and __HAL_TIM_SET_COUNTER, and you feel the pain:

  • Deep Coupling: Business logic is tangled with vendor HALs like spaghetti.
  • Migration Nightmare: Changing chips means rewriting half of your project.
  • Zero Reusability: That PID algorithm you wrote last year? Good luck digging it out.

This is why UniQ (Universal Qi) was born.


💎 What is UniQ?

UniQ is a deeply decoupled embedded functional library initiated and maintained by Li Jiaqi.

Using advanced Dependency Injection and Interface-Oriented Programming, UniQ completely "tears apart" business logic from hardware. Whether you use HAL, LL, or direct register access, UniQ runs flawlessly across different chips through a minimal adapter layer.

✨ Core Features:

  • Total Decoupling: No stm32xxx.h or vendor-specific types in the source code.
  • All-in-One: Built-in sensor drivers, universal delay libraries, smooth filtering algorithms, and more.
  • Ultra-Lightweight: Written in pure C, no OS required, built for speed and stability.
  • Porting in Seconds: Just fill in a few function pointers, and your new chip is ready to go!

💻 Quick Example

Here is how you implement cross-platform delay using UniQ's universal interface:


⚖️ License

This project is licensed under GPL v3.

  • Personal / Educational / Open Source: Fully FREE! Just keep your project open-source as per GPL terms.
  • Closed-source / Commercial:
    • If you don't want to open-source your code or want to use UniQ in a money-making product:
    • Commercial Waiver: A simple "Coffee Sponsorship" ($5 USD) unlocks the commercial achievement!

Check the LICENSE for details.


☕ Sponsorship & Support

If UniQ saved your day, consider supporting Jiaqi's hard work!

Sponsor via PayPal ($5 USD)

(Note: Please include "UniQ Commercial Use + Your Email" in the payment note for record-keeping.)


Made with ❤️ by Li Jiaqi (李家琦).
"Hard work pays off, and time never betrays the dedicated."

```

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages