Robot Control Library
rc_test_leds.c
/**
* @file rc_test_leds.c
* @example rc_test_leds
*
* tests all LEDs
*
* @author James Strawson
* @date 1/29/2018
*/
#include <stdio.h>
#include <rc/led.h>
#include <rc/time.h>
#define WAIT_US 500000 // time to light each LED in microseconds
int main()
{
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
rc_usleep(WAIT_US);
return 0;
}