.from: http://mbed.org/projects/libraries/svn/mbed/trunk/DigitalOut.h
// Toggle a LED
#include "mbed.h"
DigitalOut led(LED1);
int main() {
while(1) {
led = !led;
wait(0.2);
}
}
#include "mbed.h"
DigitalOut led(LED1);
int main() {
while(1) {
led = !led;
wait(0.2);
}
}
No comments:
Post a Comment