- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote a some code for LCD block as a new Custom Char. I wanna re-use this code, but if I insert a new component, when I Build program my personal definition go away. there is a method to save API generated with my personal code?
Solved! Go to Solution.
- Tags:
- psoc4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CrGa,
Modifying component code can be tricky and is generally not advisable for the reasons you state.
As Hari indicated, you can create your own LCD component by:
- Go to the "Components" tab of the Workspace Explorer.
- Import the Cypress LCD component into your project.
- Rename the component.
- Make the modifications you want.
This should prevent your custom component from being updated by the Application Build phase.
If your using the Cypress LCD Character or LCD Segment components, there are GUI tabs to allow you to create custom characters or segment layouts.
Len
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi CrGa_284461
Modifying the generated sources will result in PSoC creator overwriting it every time you build as you have mentioned. To make changes to the generated source, you have to import the current component and make a custom version for your application.
You can refer this KBA for details on how to create a custom component: Customizing a Component using PSoC Creator - KBA229139
Please let us know if you have any queries.
Thanks,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank's, for my tests it's a very good wiki.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CrGa,
Modifying component code can be tricky and is generally not advisable for the reasons you state.
As Hari indicated, you can create your own LCD component by:
- Go to the "Components" tab of the Workspace Explorer.
- Import the Cypress LCD component into your project.
- Rename the component.
- Make the modifications you want.
This should prevent your custom component from being updated by the Application Build phase.
If your using the Cypress LCD Character or LCD Segment components, there are GUI tabs to allow you to create custom characters or segment layouts.
Len
"Engineering is an Art. The Art of Compromise."