NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Using #define
June 18, 2012 by Ralphxyz |
I am having problems using a #define
If I hardcode the value
It works fine. So how would I use the #define? This is a continuation of my Stepper Motor Programming thread. Ralph |
---|---|
June 18, 2012 by Rick_S |
You are missing the closing parenthesis in your define line. |
June 19, 2012 by Ralphxyz |
Darn, now how the heck did that happen? Must be those Gremlins. Thanks Rick, it now compiles and even two other errors disappeared. Now back to my other thread to get the motor to turn. Ralph |
Please log in to post a reply.
Did you know that reading a double floating point variable with scanf requires "%lf" for "long float"? Learn more...
|