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.
Revision 0:f3032ddb50fb, committed 2019-07-11
- Comitter:
- junmorenodi
- Date:
- Thu Jul 11 13:08:11 2019 +0000
- Commit message:
- PIR;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PIR.cpp Thu Jul 11 13:08:11 2019 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "PIR.h"
+
+PIR::PIR(PinName input) : digit(input)
+{
+}
+
+bool PIR::getData(){
+ return digit.read() ;
+}
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PIR.h Thu Jul 11 13:08:11 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#ifndef PIR_h
+#define PIR_h
+class PIR
+{
+public:
+
+PIR(PinName input);
+
+bool getData( void);
+
+
+private:
+
+DigitalIn digit;
+};
+#endif
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jul 11 13:08:11 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file