2 Replies Latest reply on Jun 11, 2019 5:54 PM by BoTa_264741

    Code Example Criticism


      I spent several hours looking here and on the Internet for a simple example that shows how to write a byte to EEPROM and then how to get it back.  I need to save setup information so a restart can retrieve it and use the latest settings.  I found many examples that involve EEPROM as well as LCDs, thermocouples, ADCs, arrays, vectors, and so on.  These examples ARE NOT helpful.  They contain too much "clutter" that confuses nonexperts like me and others.  I often wonder if some people post examples simply to display their programming expertise rather than to educate others.


      This criticism extends to other PSoC Creator devices in the 5LP chip I often work with.  I spent a lot of time trying to get simple examples for Timers, PWMs, quadrature encoders, and other building blocks.  For the most part, basic examples don't exist.  The "Code Examples" section of the Cypress site could use a way to rate examples, perhaps as appropriate for beginners, moderately experienced users, long-time users, experts, and Cypress staff people.  And every device should have a "beginners-level" example.


      I looked at the example for a quadrature decoder this morning.  It uses PWMs, and other components.  But people would be better served if the example used a simple $3 incremental encoder and explained ways to use the APIs to do useful things.  If someone wants to go beyond that more-advanced examples might help.


      I like the PSoC devices, but lack of basic "start up" examples will point me to other MCU manufacturers.