Created
November 29, 2014 05:25
-
-
Save olafloogman/35c727c0b0d70372c5cf to your computer and use it in GitHub Desktop.
WindowsIoT_BasicTemplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main.cpp : Defines the entry point for the console application. | |
#include "stdafx.h" | |
#include "arduino.h" | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
return RunArduinoSketch(); | |
} | |
int led = 13; // This is the pin the LED is attached to. | |
void setup() | |
{ | |
// TODO: Add your code here | |
pinMode(led, OUTPUT); // Configure the pin for OUTPUT so you can turn on the LED. | |
} | |
// the loop routine runs over and over again forever: | |
void loop() | |
{ | |
// TODO: Add your code here | |
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW | |
Log(L"LED OFF\n"); | |
delay(1000); // wait for a second | |
digitalWrite(led, HIGH); // turn the LED on by making the voltage HIGH | |
Log(L"LED ON\n"); | |
delay(1000); // wait for a second | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment