Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 5 months ago.
urgent question
give me a program for led with switch case with led 1 blinking and it should show in the computer
1 Answer
10 years, 5 months ago.
Is this what you mean?
led1 blinking with pc serial terminal output
#include "mbed.h"
DigitalOut led(LED1);
Serial pc(USBTX, USBRX);
int main() {
while (true) {
led=1;
pc.printf("LED = 'on'\n");
wait(1);
led=0;
pc.printf("LED = 'off'\n");
wait(1);
}
}
Is that a question or a request that someone else does your homework for you?
posted by Andy A 21 Sep 2015