just ledcontrol
Fork of ledControl2 by
ledControl.h@0:0afc4bd76407, 2015-07-09 (annotated)
- Committer:
- BaserK
- Date:
- Thu Jul 09 12:14:46 2015 +0000
- Revision:
- 0:0afc4bd76407
- Child:
- 1:7ffaf6e46589
v1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BaserK | 0:0afc4bd76407 | 1 | #ifndef LEDCONTROL_H // "if not defined": to ensure that header code is only ever included once by the linker. |
BaserK | 0:0afc4bd76407 | 2 | #define LEDCONTROL_H |
BaserK | 0:0afc4bd76407 | 3 | |
BaserK | 0:0afc4bd76407 | 4 | #include "mbed.h" |
BaserK | 0:0afc4bd76407 | 5 | |
BaserK | 0:0afc4bd76407 | 6 | extern DigitalOut led1; // allow led1 to be manipulated by other files |
BaserK | 0:0afc4bd76407 | 7 | extern DigitalOut led2; |
BaserK | 0:0afc4bd76407 | 8 | extern DigitalOut led3; |
BaserK | 0:0afc4bd76407 | 9 | extern DigitalOut led4; |
BaserK | 0:0afc4bd76407 | 10 | |
BaserK | 0:0afc4bd76407 | 11 | void ledControl(int ledNum,int value); // function prototype |
BaserK | 0:0afc4bd76407 | 12 | void ledToggle(int ledNum); |
BaserK | 0:0afc4bd76407 | 13 | |
BaserK | 0:0afc4bd76407 | 14 | #endif |