Thanks, and this is just the first of many questions I will be having. I am trying to read up on using #define but so far I cannot see my error. I also tried with using Bit Shift instead of Bit Value and get the same error. I have never tried to use a #define before! Line 94 looks like this: PORTB = LRSTEP1 Stepper2.c:94:2: error: called object '0' is not a When I try to compile I get this message: stepper2.c: In function 'main': So here is my first problem with my code.Īt the beginning I have a #define: //Left Right Bit Value I am attempting to use PORTB with PB1,PB2, PB3 and PB4. Not that it matters but I am making a Pan/Tilt mechanism using Stepper Motors and not Servos. This is going to be a on going thread as everything leads to more questions!
0 Comments
Leave a Reply. |