??? 04/05/11 11:44 Read: times |
#181703 - You need to provide the information! Responding to: ???'s previous message |
Vaggelis Triantafillou said:
Thanks - that's better. So it's this: It has 10 digits Does it? It doesn't seem so from the picture! It seems to have four 7-Segment LED displays, and a (presumably?) 16x2 LCD. Which one(s) are you using? Can you really make anything appear on these displays by simply writing a byte to P2? I think that I wrote the code right See above - I don't think so! Under 'List of Experiments' on the web page are "LED display control", "7-Segment Display Control", and "LCM (sic?) Display Control". Have you completed all these experiments? Yes in this example there isn't but But no matter. Of course it matters! How can anyone help you with your code if you don't show the actual code that you're asking about?! if the code works I will make all comments. As already noted, that is an extremely bad habit to get into! A far better approach is, in fact, to write the comments first: So you write the comments describing what you want to do, and then you write the code to implement that! How can anyone reading your code tell what you wanted it to do if you don't state that in the comments? If you want other people to help you with your code, then you need to provide comments that explain what you want it to do - then people will be able to see if what you've written actually achieves what you wanted! |