1224 views|1 replies

41

Posts

0

Resources
The OP
 

[Rvb2601 Creative Application Development] +02 Flowing Light [Copy link]

 

[ Rvb2601 Creative Application Development] +0 2 Flowing Light

After understanding the development board and working environment, let's try the running light experiment. In the " RVB2601 Schematic Diagram ", you can find that there is only one SMD red, green and blue light-emitting diode, LED_RGB , in the schematic diagram , which can be used for this experiment.

Open CDK and create a new project. You will find that CH 2601 has a running light demo . Use it to build your own project.

Wait for the project to be loaded. Pay special attention to the main.c and led.c files in the src directory under app and the app_config.h file in the include directory .

Among them, in main.c , the LED is lit through the high and low levels of GPIO, thereby realizing the effect experiment of the running light:

In Led.c , the PWM waveform is output through the pin to control the on and off of the LED, thereby achieving the effect of a running light.

Two modes can be selected in app_config.h :

The relevant functions in the code can be found at https://yoc.docs.t-head.cn/yocbook/Chapter3-AliOS/CSI%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%8E%A5%E5%8F%A3/CSI2/ .

Finally, compile the program and then download it for verification. At the same time, you can also modify it according to the effect you want, such as how many times the red light is on, how many times the green light is on, how many times the blue light is on , and you can also make multiple combinations and so on .

It should be noted that the pin headers in the red box in the figure below need to be connected with jumper caps, otherwise the effect will not be ideal. There is a jumper cap on the development board I got that needs to be adjusted, as shown in the figure below.

Latest reply

Looking forward to the sequel, come on OP   Details Published on 2022-3-23 10:18
 
 

2w

Posts

74

Resources
2
 

Looking forward to the sequel, come on OP:)

Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list