Basic ledControl library that control the leds on LPC1768

Dependents:   gimbalController_brushless_IMU i2c_MPU6050 i2c_HMC5883L IMU_fusion ... more

ledControl.h

Committer:
BaserK
Date:
2015-07-09
Revision:
0:0afc4bd76407
Child:
1:7ffaf6e46589

File content as of revision 0:0afc4bd76407:

#ifndef LEDCONTROL_H  // "if not defined": to ensure that header code is only ever included once by the linker.
#define LEDCONTROL_H

#include "mbed.h"

extern DigitalOut led1;   // allow led1 to be manipulated by other files
extern DigitalOut led2;
extern DigitalOut led3;
extern DigitalOut led4;

void ledControl(int ledNum,int value); // function prototype
void ledToggle(int ledNum);

#endif