diff options
Diffstat (limited to 'blinktest_328p/main.cpp')
| -rw-r--r-- | blinktest_328p/main.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/blinktest_328p/main.cpp b/blinktest_328p/main.cpp new file mode 100644 index 0000000..f96336c --- /dev/null +++ b/blinktest_328p/main.cpp @@ -0,0 +1,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 + } +} + |
