New mbed
Since there are so many users, I decided that it must be me so I bought another mbed. Actually, the first mbed was complements of NXP so actually this is the first mbed I bought. Anyway, I ran my version of Hello World.
#include "mbed.h"
DigitalOut myled1(LED1);
DigitalOut myled2(LED2);
DigitalOut myled3(LED3);
DigitalOut myled4(LED4);
int main() {
while (1) {
myled1 = 1;
wait(0.2);
myled2 = 1;
wait(0.2);
myled3 = 1;
wait(0.2);
myled4 = 1;
wait(0.2);
myled4 = 0;
wait(0.2);
myled3 = 0;
wait(0.2);
myled2 = 0;
wait(0.2);
myled1 = 0;
wait(0.2);
}
}
0 comments
You need to log in to post a comment