Skip to content
Snippets Groups Projects
avr_code.ino 306 B
Newer Older
  • Learn to ignore specific revisions
  • Markus Scheck's avatar
    Markus Scheck committed
    #include "timer_1.h"
    #include "pinchange.h"
    #include <avr/io.h>
    
    int main(void) {
    
      Serial.begin(9600);
      timer_init();
      init_pc();
    
      
    
      // enable interrupts
      sei();
      timer_start();
      PORTA = 0xff; // set high
    
      // timer will be stopped in pc interrupt
    
      while(1) {
      }
      
    }