Test code

Dependencies:   mbed Motor Servo

Committer:
m215910
Date:
Tue Oct 09 14:03:02 2018 +0000
Revision:
0:755c12c1a9ad
Child:
1:bd813dd636a9
added line 10

Who changed what in which revision?

UserRevisionLine numberNew contents of line
m215910 0:755c12c1a9ad 1 #include "mbed.h"
m215910 0:755c12c1a9ad 2
m215910 0:755c12c1a9ad 3 DigitalOut myled(LED1);
m215910 0:755c12c1a9ad 4
m215910 0:755c12c1a9ad 5 int main() {
m215910 0:755c12c1a9ad 6 while(1) {
m215910 0:755c12c1a9ad 7 myled = 1;
m215910 0:755c12c1a9ad 8 wait(0.2);
m215910 0:755c12c1a9ad 9 myled = 0;
m215910 0:755c12c1a9ad 10 wait(0.2);
m215910 0:755c12c1a9ad 11 }
m215910 0:755c12c1a9ad 12 }