Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WakeUp PinDetect
Dependents: Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3
Bob.h
- Committer:
- bobgiesberts
- Date:
- 2015-12-18
- Revision:
- 0:17943815800f
- Child:
- 1:2234e0b31d94
File content as of revision 0:17943815800f:
#ifndef _Bob_H_
#define _Bob_H_
/**
* @file Bob.h
* @brief collection of some functions to communicate
* with the processor board. LEDs, SD, etc.
*
* @author Bob Giesberts
*
* @date 2015-12-18
*/
#include "mbed.h"
class Bob {
public:
Bob(PinName redled, PinName greenled, PinName sd_enable, PinName sd_present);
bool checkSD(void);
void flash(int n);
void flash_red(int n);
void flash_green(int n);
void red(void);
void green(void);
private:
DigitalOut _red;
DigitalOut _green;
DigitalOut _sdE;
DigitalIn *_sdP;
};
#endif