|
12345678910111213141516171819202122232425262728 |
- #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:
-
- pinMode(13, OUTPUT);
- while (1) {
- digitalWriteFast(13, HIGH);
- delay(500);
- digitalWriteFast(13, LOW);
- delay(500);
- }
-
-
- #else
- // Arduino's main() function just calls setup() and loop()....
- setup();
- while (1) {
- loop();
- yield();
- }
- #endif
- }
-
|