Skip to content

Instantly share code, notes, and snippets.

@toyowata
Created March 14, 2016 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyowata/b53582b917d271763101 to your computer and use it in GitHub Desktop.
Save toyowata/b53582b917d271763101 to your computer and use it in GitHub Desktop.
Arduino M0 Proでmbedのコードを動かす ref: http://qiita.com/toyowata/items/2b2e71928b86fd829771
#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