Includes a basic 4-bit binary counter function for the leds.
ledCounter.h@0:805b57b2dd2b, 2015-07-08 (annotated)
- Committer:
- BaserK
- Date:
- Wed Jul 08 11:26:27 2015 +0000
- Revision:
- 0:805b57b2dd2b
- Child:
- 1:dbabf5266268
First commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
BaserK | 0:805b57b2dd2b | 1 | #ifndef LEDCOUNTER_H |
BaserK | 0:805b57b2dd2b | 2 | #define LEDCOUNTER_H |
BaserK | 0:805b57b2dd2b | 3 | |
BaserK | 0:805b57b2dd2b | 4 | #include "mbed.h" |
BaserK | 0:805b57b2dd2b | 5 | |
BaserK | 0:805b57b2dd2b | 6 | extern DigitalOut led1; // allow led1 to be manipulated by other files |
BaserK | 0:805b57b2dd2b | 7 | extern DigitalOut led2; |
BaserK | 0:805b57b2dd2b | 8 | extern DigitalOut led3; |
BaserK | 0:805b57b2dd2b | 9 | extern DigitalOut led4; |
BaserK | 0:805b57b2dd2b | 10 | |
BaserK | 0:805b57b2dd2b | 11 | void ledCounter(int value); // function prototype |
BaserK | 0:805b57b2dd2b | 12 | |
BaserK | 0:805b57b2dd2b | 13 | #endif |