Local library

Dependencies:   WakeUp PinDetect

Dependents:   Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3

Committer:
bobgiesberts
Date:
Fri Dec 18 15:49:34 2015 +0000
Revision:
0:17943815800f
Child:
1:2234e0b31d94
Communication with Leds and SD-card

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bobgiesberts 0:17943815800f 1 #ifndef _Bob_H_
bobgiesberts 0:17943815800f 2 #define _Bob_H_
bobgiesberts 0:17943815800f 3
bobgiesberts 0:17943815800f 4 /**
bobgiesberts 0:17943815800f 5 * @file Bob.h
bobgiesberts 0:17943815800f 6 * @brief collection of some functions to communicate
bobgiesberts 0:17943815800f 7 * with the processor board. LEDs, SD, etc.
bobgiesberts 0:17943815800f 8 *
bobgiesberts 0:17943815800f 9 * @author Bob Giesberts
bobgiesberts 0:17943815800f 10 *
bobgiesberts 0:17943815800f 11 * @date 2015-12-18
bobgiesberts 0:17943815800f 12 */
bobgiesberts 0:17943815800f 13
bobgiesberts 0:17943815800f 14 #include "mbed.h"
bobgiesberts 0:17943815800f 15
bobgiesberts 0:17943815800f 16 class Bob {
bobgiesberts 0:17943815800f 17 public:
bobgiesberts 0:17943815800f 18 Bob(PinName redled, PinName greenled, PinName sd_enable, PinName sd_present);
bobgiesberts 0:17943815800f 19
bobgiesberts 0:17943815800f 20 bool checkSD(void);
bobgiesberts 0:17943815800f 21 void flash(int n);
bobgiesberts 0:17943815800f 22 void flash_red(int n);
bobgiesberts 0:17943815800f 23 void flash_green(int n);
bobgiesberts 0:17943815800f 24 void red(void);
bobgiesberts 0:17943815800f 25 void green(void);
bobgiesberts 0:17943815800f 26
bobgiesberts 0:17943815800f 27 private:
bobgiesberts 0:17943815800f 28 DigitalOut _red;
bobgiesberts 0:17943815800f 29 DigitalOut _green;
bobgiesberts 0:17943815800f 30 DigitalOut _sdE;
bobgiesberts 0:17943815800f 31 DigitalIn *_sdP;
bobgiesberts 0:17943815800f 32
bobgiesberts 0:17943815800f 33 };
bobgiesberts 0:17943815800f 34
bobgiesberts 0:17943815800f 35 #endif