Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DS1620_improved TextLCD_improved mbed-rtos mbed
tsk_led.cpp
- Committer:
- dzoni
- Date:
- 2015-12-14
- Revision:
- 11:e89f89c0920b
- Parent:
- 9:645f0e517017
- Child:
- 17:94c385ff2641
File content as of revision 11:e89f89c0920b:
#include "mbed.h"
#include "rtos.h"
#include "tsk_led.h"
struct led_flash_times_struct led_flash_times = { 100, 2500 };
static DigitalOut led2(LED2);
void led_thread(void const *args) {
while (true) {
led2 = 1;
Thread::wait(led_flash_times.on_time);
led2 = 0;
Thread::wait(led_flash_times.off_time);
}
}