Basic led control library for the onboard LEDs on the LPC1768.

Dependents:   modular_blinky 20220803GY

ledControl.h

Committer:
BaserK
Date:
2015-07-06
Revision:
0:428949329e53
Child:
1:c86dd9e1bb24

File content as of revision 0:428949329e53:

#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