0919

MAIN.CPP

Committer:
peng103617
Date:
20 months ago
Revision:
0:be2aa7192ae0

File content as of revision 0:be2aa7192ae0:

#include "mbed.h"
DigitalOut redled(PA_5); //define and name a digital output
DigitalOut greenled(PA_6); //define and name a digital output
int main() {
while(1) {
redled = 1;
greenled = 0;
wait(0.2);
redled = 0;
greenled = 1;
wait(0.2);
}
}