KST-STM32 learning project actual RGB stage lighting

Publisher:温馨的家庭Latest update time:2018-12-14 Source: eefocusKeywords:KST-STM32  RGB Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Here is the schematic diagram of the RGB small light~


Write the picture description here


1. Compared with the basic timer, the general timer uses more output comparisons to set the capture compare register channel initial value and channel pre-loading. 


Write the picture description here


2. The color gradient implemented by the basic timer in the interruption is amazing. 


Write the picture description here


3. Note that GPIO_Init obviously has two parameters, otherwise how can we tell which group of IO it is! 


Write the picture description here


4. There is also a place for register operation, which is rewritten as a library function


Write the picture description here


Direct register operation can achieve higher execution efficiency than library functions and save interrupt function execution time. 

But, after all, you are just a beginner, so it’s no big deal!


5. The register operation in LedNumScan can also be rewritten. . . 


Write the picture description here


6. The macro definition of key.h is really great!!! 


Write the picture description here

Keywords:KST-STM32  RGB Reference address:KST-STM32 learning project actual RGB stage lighting

Previous article:KST-STM32 Learning USART
Next article:KST-STM32 learning various ways to achieve PWM (software hardware + general advanced timer)

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号