SmartIO can be used to expand single-channel PWM to multiple channels, it is easy to realize multiple channels Breathing LED control use similar design.
Attached sample projects shows you how to realize that.
This document was generated from the following discussion: Expand single-channel PWM to multiple channels using SmartIO
Show LessThe Cypress Community Code Example Area is provided by Cypress as an added benefit for our members to share code, ideas and content around best practices in relation to software code development intended to be used with Cypress hardware.
These Terms are specific to the Community Code Example Area and are in addition to our Cypress Community Guidelines, Cypress’s Privacy Policy and our Terms of Use. These Terms are an addendum to the Usage Guidelines for Cypress Developer Community.
If you post code examples (“Code”), share content, comments or ideas or feedback (“Content”), or download, view, or use any Code or Content found on the Cypress Community you must agree and adhere to the following Terms & Conditions:
1. Cypress does not obtain any ownership of intellectual property rights in your Code or Content. You are entirely responsible for any Code and Content you submit, including any liability resulting from its use or distribution. By making Code or Content available, you represent and warrant that:
2. You shall not request any payment for the download or usage of Code or Content linked to or shared in the Cypress Community. You hereby grant Cypress a perpetual, irrevocable, worldwide, sub-licensable, royalty-free, non-exclusive license to make, have made, use, import, copy, display, and distribute Content. You agree to provide Code under a license that entitles Cypress and other users to make, have made, use, import, copy, display, and distribute the Code.
3. Cypress may make basic inspections of Code before allowing it to be posted and may test the functionality of Code from time to time and apply a “Cypress Verified” label to certain Code. The “Cypress Verified” label means only that Cypress has confirmed that the code performs the specified functions. Neither Cypress’s inspection of Code nor the “Cypress Verified” label shall mean that Cypress has verified the source of the code or whether any intellectual property licenses are required in order to use the Code. Cypress provides no warranty with respect to Code you download from the Code Hub.
4. When deleting Code or Content, Cypress will use reasonable efforts to remove it from the website, but you acknowledge that due to external caching or references the Code or Content may not be made unavailable immediately or at all.
5. If you are participating in the Cypress Community on behalf of an entity, you represent and warrant that you have authority to bind that entity to the Terms, and by accepting the Terms, you are doing so on behalf of that entity (and all references to "you" in the Terms refer to that entity).
6. NEITHER CYPRESS NOR ITS SUPPLIERS MAKE ANY SPECIFIC PROMISES ABOUT THE CODE OR CONTENT OR CODE HUB. CYPRESS PROVIDES THE CODE, CONTENT, AND CODE HUB "AS IS". CYPRESS EXCLUDES ALL WARRANTIES, GUARANTEES, CONDITIONS, REPRESENTATIONS, AND UNDERTAKINGS, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
7. NOTICE AND PROCEDURE FOR MAKING CLAIMS OF COPYRIGHT INFRINGEMENT, INCLUDING IN ACCORDANCE WITH THE DIGITAL MILLENNIUM COPYRIGHT ACT (DMCA): Please see paragraph 17 (“Notification of Copyright Infringement”) of the Terms of Use for information on making notifications under the DMCA.
How to get help
Questions or concerns regarding actions taken by the staff or other members should be directed to a Cypress Moderator or Administrator via Private Message (PM) or e-mail.
Cypress employee participants generally are identified in their profile and may use the Cypress logo.
Show LessWe appreciate for your continued interest with Cypress Products !
Thanks for choosing to share your code example with the community !
Code is the lifeline for any embedded system and sharing your code means a lot for our community !
Below are few simple steps to start sharing your code example
Make sure you are logged into the Cypress Community. If you are logged in you will see your name and Avatar on the right-hand side of the page.
Click on SHARE CODE from the menu in the right hand side of the page
Enter the details in the Code Example Upload Form as below
1. Title of the CE - Precise and clear titles help users to understand the code example quickly
2. Description - the below details in the description can help the community to get started with your CE quickly
Summary - Quick overview of the function performed by the code example
Hardware Required - Hardware required for this code example
Software Required - Software required for this code example to build / program the code
Firmware Details - compiler used
Snapshots / Scope shots / Schematics / Block Diagram if applicable
Hardware Connections required to run the code example if applicable
External Links - for external code repositories like GitHub or Bit Bucket etc..
Please provide a GitHub link for this code example from your personal repository if available.
Cypress will fork your code example to its Community Code Example repository in Cypress’s official GitHub page - https://github.com/cypresssemiconductorco
3. Attach files
Attach all the relevant files (project, documentation, readme, datasheets, etc..)
PRO tip from @/odissey1 for PSoC Creator users to upload smaller project zip files
(1) Buid -> Clean (this will strip temp files)
(2) Select project name -> File -> Create Workspace Bundle -> minimal. (this will create project archive *.zip).
(3) Open created archive and delete huge folder Generated Source (it will re-generate itself on next build). The resulting archive will be 10-20x smaller
4. Tags - Right Tags helps users to search and find your code example quickly
5. Categories - classifies the project in the right product category for users to sort and find the code example quickly
6. Last, but not the least, Don't forget to click on the Post tab to make your code available for the community.
Thanks for sharing your code example with the community!
Show Less