fork download
  1. #define F_CPU 16000000
  2.  
  3. #include <util/delay.h>
  4. #include <avr/io.h>
  5.  
  6. int main() {
  7.  
  8. DDRC = 0x7F; //All C Ports as OutPut
  9.  
  10. while (1) {
  11.  
  12. PORTC = 0b00000000; //Binary for PC6 PC5 PC4 PC3 PC2 PC1 PC0
  13. _delay_ms(500);
  14. PORTC = 0b00000001;
  15. _delay_ms(500);
  16.  
  17. }
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:25: error: util/delay.h: No such file or directory
prog.c:4:20: error: avr/io.h: No such file or directory
prog.c: In function ‘main’:
prog.c:8: error: ‘DDRC’ undeclared (first use in this function)
prog.c:8: error: (Each undeclared identifier is reported only once
prog.c:8: error: for each function it appears in.)
prog.c:12: error: ‘PORTC’ undeclared (first use in this function)
prog.c:13: warning: implicit declaration of function ‘_delay_ms’
stdout
Standard output is empty