30 lines
464 B
C++
30 lines
464 B
C++
#include "WProgram.h"
|
|
|
|
extern "C" int main(void)
|
|
{
|
|
#ifdef USING_MAKEFILE
|
|
|
|
// To use Teensy 3.0 without Arduino, simply put your code here.
|
|
// For example:
|
|
|
|
Serial.begin(9600);
|
|
pinMode(13, OUTPUT);
|
|
while (1) {
|
|
digitalWriteFast(13, HIGH);
|
|
delay(500);
|
|
digitalWriteFast(13, LOW);
|
|
delay(500);
|
|
Serial.println("Flashed\n");
|
|
}
|
|
|
|
|
|
#else
|
|
// Arduino's main() function just calls setup() and loop()....
|
|
setup();
|
|
while (1) {
|
|
loop();
|
|
yield();
|
|
}
|
|
#endif
|
|
}
|