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.
Diff: HeartBeat.h
- Revision:
- 2:fc8dbf3231ee
- Parent:
- 1:c102c32513b2
- Child:
- 3:654a22520c76
--- a/HeartBeat.h Wed Nov 28 21:18:23 2012 +0000
+++ b/HeartBeat.h Thu Nov 29 14:12:25 2012 +0000
@@ -1,16 +1,18 @@
#include "mbed.h"
-#include <string>
-#include "definitions.h"
class HeartBeat
{
public:
//object creator method, call this to initialize a heartbeat object
- HeartBeat(PinName LEDPin);
+ HeartBeat(PinName light, PinName pwm);
-
+ void turnOn();
+ void pwmIt(float frequency);
private:
- string _globalResponse;
+
+ DigitalOut led;
+ PwmOut pwmObject;
+
};
\ No newline at end of file
