Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
David Prentice
01/15/13 09:14
Read: 914 times

Msg Score: +1
 +1 Good Answer/Helpful
#189174 - Design your project in the first place
Responding to: Erik Malund's previous message
Erik Malund said:
If the "code" you've provided is not your own work, then you should thoroughly understand it before asking us to decipher it for you.

oddly enough, when you comment it, you may find the fix yourself, if not, it enables us to help you.

I agree 100% with Erik.

However, even with comments, it is rather long and prone to errors.

I have made NO attempt to read it, but I can guess that you are showing 'patterns' of lights. The N'th pattern will display for T milliseconds, and then a new pattern, and so on ...

So if you 'design' for a lookup table that contains 'pattern' and 'display time', you will have something easy to manage.

Then you just need a function to read the N'th pattern and time from the table. And a timing function to reflect the 'display time' T.

Of course, you can always take a different approach. Whichever way you go, you need to explain your 'design'. And describe your support functions.


List of 36 messages in thread
LED CHASER      Jai Nair      01/12/13 13:41      
   To avoid problems      Hal Albach      01/12/13 15:10      
      RMW uses latch      Maarten Brock      01/13/13 06:37      
      LED CHASER      Jai Nair      01/14/13 01:19      
         very possible        Erik Malund      01/14/13 07:27      
            LED CHASER      Jai Nair      01/14/13 08:59      
               Do you know what comments are?        Richard Erlacher      01/14/13 11:20      
                  oddly enough      Erik Malund      01/14/13 11:33      
                     Very true      Kalpak Dabir      01/14/13 20:07      
                     Design your project in the first place        David Prentice      01/15/13 09:14      
               yes, when      Erik Malund      01/14/13 11:30      
                  led chaser_comment      Jai Nair      01/16/13 09:13      
                     it would be helpful      Erik Malund      01/16/13 09:42      
                        chip       Jai Nair      01/16/13 10:11      
                           read the datasheet      Erik Malund      01/16/13 11:51      
                              potentiometer      Jai Nair      01/16/13 23:27      
                                 Erik's typing      Andy Neil      01/17/13 02:13      
                                 RE: potentiometer      Andy Neil      01/17/13 02:28      
                              Not entirely true      Andy Neil      01/17/13 02:17      
                                 The AT89C2051 has analog comparator      David Prentice      01/17/13 02:32      
                                    LED currents      Jai Nair      01/17/13 11:56      
                                       no, you have not      Erik Malund      01/17/13 13:01      
                                          comment      Jai Nair      01/17/13 13:33      
                                             which is also uncommented scribbles      Erik Malund      01/17/13 13:46      
                                                comment      Jai Nair      01/18/13 09:42      
                                                   He wants you to put descriptive, detailed comments      Andy Neil      01/18/13 09:58      
                                                      thanks       Jai Nair      01/18/13 10:01      
                                                         Will you do it?      Andy Neil      01/18/13 13:02      
                                                            comment      Jai Nair      01/18/13 13:12      
                                                               A method I have used for LED signs        Erik Malund      01/18/13 13:46      
                                                                  OMG      Michael Karas      01/18/13 18:47      
                                                                     one example, please      Erik Malund      01/18/13 20:25      
                                                               bear in mind that not everyone will recognize "LED Chaser"      Richard Erlacher      01/22/13 09:27      
                                                   apparently you still don't know what comments are      Richard Erlacher      01/22/13 09:17      
   no, you don't      Erik Malund      01/12/13 19:41      
   ADC with 89C2051 comparator      Hal Albach      01/25/13 18:25      

Back to Subject List