Basic led control library for the onboard LEDs on the LPC1768.
Dependents: modular_blinky 20220803GY
Diff: ledControl.h
- Revision:
- 0:428949329e53
- Child:
- 1:c86dd9e1bb24
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ledControl.h Mon Jul 06 07:28:06 2015 +0000 @@ -0,0 +1,13 @@ +#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 + +#endif