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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/15/13 16:14
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#189174 - Design your project in the first place
Responding to: ???'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.

David.

List of 36 messages in thread
TopicAuthorDate
LED CHASER            01/01/70 00:00      
   To avoid problems            01/01/70 00:00      
      RMW uses latch            01/01/70 00:00      
      LED CHASER            01/01/70 00:00      
         very possible            01/01/70 00:00      
            LED CHASER            01/01/70 00:00      
               Do you know what comments are?            01/01/70 00:00      
                  oddly enough            01/01/70 00:00      
                     Very true            01/01/70 00:00      
                     Design your project in the first place            01/01/70 00:00      
               yes, when            01/01/70 00:00      
                  led chaser_comment            01/01/70 00:00      
                     it would be helpful            01/01/70 00:00      
                        chip             01/01/70 00:00      
                           read the datasheet            01/01/70 00:00      
                              potentiometer            01/01/70 00:00      
                                 Erik's typing            01/01/70 00:00      
                                 RE: potentiometer            01/01/70 00:00      
                              Not entirely true            01/01/70 00:00      
                                 The AT89C2051 has analog comparator            01/01/70 00:00      
                                    LED currents            01/01/70 00:00      
                                       no, you have not            01/01/70 00:00      
                                          comment            01/01/70 00:00      
                                             which is also uncommented scribbles            01/01/70 00:00      
                                                comment            01/01/70 00:00      
                                                   He wants you to put descriptive, detailed comments            01/01/70 00:00      
                                                      thanks             01/01/70 00:00      
                                                         Will you do it?            01/01/70 00:00      
                                                            comment            01/01/70 00:00      
                                                               A method I have used for LED signs            01/01/70 00:00      
                                                                  OMG            01/01/70 00:00      
                                                                     one example, please            01/01/70 00:00      
                                                               bear in mind that not everyone will recognize "LED Chaser"            01/01/70 00:00      
                                                   apparently you still don't know what comments are            01/01/70 00:00      
   no, you don't            01/01/70 00:00      
   ADC with 89C2051 comparator            01/01/70 00:00      

Back to Subject List