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

Dependents:   modular_blinky 20220803GY

Committer:
BaserK
Date:
Mon Jul 06 07:28:06 2015 +0000
Revision:
0:428949329e53
Child:
1:c86dd9e1bb24
First Release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
BaserK 0:428949329e53 1 #ifndef LEDCONTROL_H // "if not defined": to ensure that header code is only ever included once by the linker.
BaserK 0:428949329e53 2 #define LEDCONTROL_H
BaserK 0:428949329e53 3
BaserK 0:428949329e53 4 #include "mbed.h"
BaserK 0:428949329e53 5
BaserK 0:428949329e53 6 extern DigitalOut led1; // allow led1 to be manipulated by other files
BaserK 0:428949329e53 7 extern DigitalOut led2;
BaserK 0:428949329e53 8 extern DigitalOut led3;
BaserK 0:428949329e53 9 extern DigitalOut led4;
BaserK 0:428949329e53 10
BaserK 0:428949329e53 11 void ledControl(int ledNum,int value); // function prototype
BaserK 0:428949329e53 12
BaserK 0:428949329e53 13 #endif