1.6 LED Breathing
This example application demonstrates how to generate a breathing LED pattern using the Breathing LED peripheral.
Description
This example application generates a symmetrical breathing LED output. The peripheral is configured to generate a breathing LED output with a ramp up and ramp down time of 1.84 seconds with a total period of 5.26 seconds. The high delay (PWM cycles to wait once the duty cycle reaches MAX value) is set to 100. Similarly the low delay (PWM cycles to wait once the duty cycle reaches MIN value) is set to 100.
Downloading and Building the Application
To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.
Path of the application within the repository is apps/led/led_breathing/firmware .
To build the application, refer to the following table and open the project using its IDE.
Project Name | Description |
---|---|
cec1736_evb.X | MPLABX project for CEC 1736 Development Board |
Setting Up the Hardware
The following table shows the target hardware for the application projects.
Project Name | Board |
---|---|
cec1736_evb.X | MPLABX project for CEC 1736 Development Board |
Setting Up CEC 1736 Development Board
- No additional setup is requred to run this demo.
Running the Application
- Build and Program the application using its IDE
- Observe the breathing LED pattern
Board | LED Name |
---|---|
CEC 1736 Development Board | LED6 |