![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TINF_TwoLEDsX
main.cpp
- Committer:
- martwerl
- Date:
- 2018-11-15
- Revision:
- 1:cc9fba0cbda0
- Parent:
- 0:6222193a31e0
File content as of revision 1:cc9fba0cbda0:
#include "mbed.h" #include "2Leds.h" DigitalOut led(LED1); TwoLeds twoleds(LED1, LED2); int main() { while (1) { twoleds.ledOn(); //LEDs ein/aus twoleds.printStatus(); wait_ms(500); twoleds.ledOff(); twoleds.printStatus(); wait_ms(500); for(int i = 0; i <= 3; i++) { twoleds.ledX(); twoleds.printStatus(); wait_ms(500); } } }