2013-03-14 11:52:38 +00:00
|
|
|
#include "mbed.h"
|
|
|
|
|
|
|
|
#ifdef TARGET_KL25Z
|
2013-04-11 16:13:23 +00:00
|
|
|
DigitalOut out(PTD4);
|
2013-04-17 15:32:49 +00:00
|
|
|
|
2013-06-27 21:20:47 +00:00
|
|
|
#elif TARGET_KL05Z
|
|
|
|
DigitalOut out(PTB1);
|
|
|
|
|
2013-10-01 18:18:39 +00:00
|
|
|
#elif TARGET_KL46Z
|
|
|
|
DigitalOut out(PTA1);
|
|
|
|
|
2013-04-17 15:32:49 +00:00
|
|
|
#elif TARGET_LPC812
|
|
|
|
DigitalOut out(D10);
|
|
|
|
|
2013-03-14 11:52:38 +00:00
|
|
|
#else
|
|
|
|
DigitalOut out(p5);
|
|
|
|
#endif
|
|
|
|
|
2013-04-11 16:13:23 +00:00
|
|
|
DigitalOut led(LED1);
|
2013-03-14 11:52:38 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
printf("Hello World\n");
|
2013-06-27 21:20:47 +00:00
|
|
|
|
2013-03-14 11:52:38 +00:00
|
|
|
while (true) {
|
2013-04-11 16:13:23 +00:00
|
|
|
wait_us(1000);
|
2013-03-14 11:52:38 +00:00
|
|
|
out = !out;
|
2013-04-11 16:13:23 +00:00
|
|
|
led = !led;
|
2013-03-14 11:52:38 +00:00
|
|
|
}
|
|
|
|
}
|