Created
March 14, 2016 12:02
-
-
Save toyowata/b53582b917d271763101 to your computer and use it in GitHub Desktop.
Arduino M0 Proでmbedのコードを動かす ref: http://qiita.com/toyowata/items/2b2e71928b86fd829771
This file contains hidden or 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
#include "mbed.h" | |
DigitalOut myled(PA17); | |
Serial pc(PB22, PB23); | |
int main() { | |
pc.printf("hello, mbed world.\n"); | |
while(1) { | |
myled = 1; | |
wait(0.2); | |
myled = 0; | |
wait(0.2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment