summaryrefslogtreecommitdiff
path: root/blinktest_328p/main.cpp
blob: f96336c2649983a03e72645a8b9156aa896d31f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
extern "C" void __cxa_pure_virtual(void); //for C++ defines

/*
Blink test

F_CPU setting is not working

*/


#include <WProgram.h> //import main Arduino header file


int main(){

    init(); //-- init Arduino library - delay, PWM setup messes with timers, millis(), micros() etc don't work without it
    pinMode(13, OUTPUT);



     while(1) {
        digitalWrite(13, HIGH);   // set the LED on
       delay(1000);              // wait for a second
        digitalWrite(13, LOW);    // set the LED off
       delay(1000);              // wait for a second
      }
}