NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Help with code
April 01, 2011 by jkoppp |
For some reason my code wont compile... can someone tell me what is wrong with it. //Lasertest1.c //JKOPPP define F_CPU 14745600include <stdio.h>include <avr/io.h>include <avr/interrupt.h>include <avr/pgmspace.h>include <inttypes.h>include <../libnerdkits/delay.h>include <../libnerdkits/lcd.h>// MCU PIN 23=SWITCH void main() {
}
} |
---|---|
April 01, 2011 by Ralphxyz |
What is it doing or not doing? Post a screen shot of your command line. Here is your code using the "Indent Selection as Code Block" button at the bottom of the page it really is so much easier to read:
Ralph |
April 01, 2011 by SpaceGhost |
Well... Your program seems to be lacking some { } 's here and there. Oh, and I think "while 1" has to be "while (1)". I don't know if it's okay your way, I haven't seen it written that way before. |
Please log in to post a reply.
Did you know that a motor is harder to turn when its terminals are shorted together? Learn more...
|