Arduboy lib for NRF and mbed

Dependencies:   Adafruit_GFX

Committer:
lmayencou
Date:
Tue Dec 27 11:27:14 2016 +0000
Revision:
0:2b6d7af79c9c
first publish

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lmayencou 0:2b6d7af79c9c 1 #include "mbed.h"
lmayencou 0:2b6d7af79c9c 2 #include "core.h"
lmayencou 0:2b6d7af79c9c 3
lmayencou 0:2b6d7af79c9c 4 DigitalOut led1(LED1);
lmayencou 0:2b6d7af79c9c 5
lmayencou 0:2b6d7af79c9c 6 // main() runs in its own thread in the OS
lmayencou 0:2b6d7af79c9c 7 // (note the calls to Thread::wait below for delays)
lmayencou 0:2b6d7af79c9c 8 int main() {
lmayencou 0:2b6d7af79c9c 9
lmayencou 0:2b6d7af79c9c 10 Arduboy arduboy;
lmayencou 0:2b6d7af79c9c 11
lmayencou 0:2b6d7af79c9c 12 while (true) {
lmayencou 0:2b6d7af79c9c 13 led1 = !led1;
lmayencou 0:2b6d7af79c9c 14 Thread::wait(500);
lmayencou 0:2b6d7af79c9c 15 }
lmayencou 0:2b6d7af79c9c 16 }
lmayencou 0:2b6d7af79c9c 17