Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <avr/io.h>
  2. #include <avr/interrupt.h>
  3.  
  4. void timer1();
  5. void sleep();
  6.  
  7. int main() {
  8.     DDRC = 0xFF;
  9.     PORTC = 0b00000000;
  10.  
  11.     sei();
  12.  
  13.     //timer1();
  14.  
  15.     while(1) {
  16.         PORTC = 0b11111111;
  17.         sleep(50000);
  18.         PORTC = 0b00000000;
  19.         sleep(50000);
  20.     }
  21. }
  22.  
  23. void sleep(long int timems) {
  24.     // warten
  25. }
  26.  
  27. /*void timer1() {
  28.     TCCRA1 = 0;
  29. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement