??? 03/02/12 13:08 Read: times |
#186357 - Why loop with char for int parameter? Responding to: ???'s previous message |
Interesting thing here.
You have a delay function that takes an unsigned int parameter. You loop this unsigned int parameter using using variable "n" - an unsigned char variable. And you loop "count" steps using an unsigned int variable "i" Another thing to google a bit about. What are the view about using lower-case letters for a #define count 1700 You are not agreeing with the common recommendations to use capital letters in #define'd symbols, to make it instantly visible in the code that the symbol will be text/replaced during the compilation potentially resulting in code with non-obvious behaviour. How long have you not noticed this? |
Topic | Author | Date |
Help me | 01/01/70 00:00 | |
Descriptive? | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
Why loop with char for int parameter? | 01/01/70 00:00 | |
Tips | 01/01/70 00:00 | |
Satish, you're not helping yourself here ... | 01/01/70 00:00 | |
is this the "helping yourself" you refer to? | 01/01/70 00:00 |