Includes a basic 4-bit binary counter function for the leds.

Dependents:   datalogging_RTC

Committer:
BaserK
Date:
Tue Jul 21 08:04:19 2015 +0000
Revision:
1:dbabf5266268
Parent:
0:805b57b2dd2b
MIT license is added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
BaserK 1:dbabf5266268 1 /*
BaserK 1:dbabf5266268 2 * Copyright (c) 2015, Baser Kandehir, baser.kandehir@ieee.metu.edu.tr
BaserK 1:dbabf5266268 3 *
BaserK 1:dbabf5266268 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
BaserK 1:dbabf5266268 5 * of this software and associated documentation files (the "Software"), to deal
BaserK 1:dbabf5266268 6 * in the Software without restriction, including without limitation the rights
BaserK 1:dbabf5266268 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
BaserK 1:dbabf5266268 8 * copies of the Software, and to permit persons to whom the Software is
BaserK 1:dbabf5266268 9 * furnished to do so, subject to the following conditions:
BaserK 1:dbabf5266268 10 *
BaserK 1:dbabf5266268 11 * The above copyright notice and this permission notice shall be included in
BaserK 1:dbabf5266268 12 * all copies or substantial portions of the Software.
BaserK 1:dbabf5266268 13 *
BaserK 1:dbabf5266268 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
BaserK 1:dbabf5266268 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
BaserK 1:dbabf5266268 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
BaserK 1:dbabf5266268 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
BaserK 1:dbabf5266268 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
BaserK 1:dbabf5266268 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
BaserK 1:dbabf5266268 20 * THE SOFTWARE.
BaserK 1:dbabf5266268 21 *
BaserK 1:dbabf5266268 22 */
BaserK 1:dbabf5266268 23
BaserK 0:805b57b2dd2b 24 #ifndef LEDCOUNTER_H
BaserK 0:805b57b2dd2b 25 #define LEDCOUNTER_H
BaserK 0:805b57b2dd2b 26
BaserK 0:805b57b2dd2b 27 #include "mbed.h"
BaserK 0:805b57b2dd2b 28
BaserK 0:805b57b2dd2b 29 extern DigitalOut led1; // allow led1 to be manipulated by other files
BaserK 0:805b57b2dd2b 30 extern DigitalOut led2;
BaserK 0:805b57b2dd2b 31 extern DigitalOut led3;
BaserK 0:805b57b2dd2b 32 extern DigitalOut led4;
BaserK 0:805b57b2dd2b 33
BaserK 0:805b57b2dd2b 34 void ledCounter(int value); // function prototype
BaserK 0:805b57b2dd2b 35
BaserK 0:805b57b2dd2b 36 #endif