Basic ledControl library that control the leds on LPC1768
Dependents: gimbalController_brushless_IMU i2c_MPU6050 i2c_HMC5883L IMU_fusion ... more
Diff: ledControl.h
- Revision:
- 0:0afc4bd76407
- Child:
- 1:7ffaf6e46589
diff -r 000000000000 -r 0afc4bd76407 ledControl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ledControl.h Thu Jul 09 12:14:46 2015 +0000 @@ -0,0 +1,14 @@ +#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