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: mbed
Fork of frdm_Grove_Flame_Example by
Revision 0:e72d14a5d0bc, committed 2016-01-03
- Comitter:
- GregC
- Date:
- Sun Jan 03 05:17:49 2016 +0000
- Commit message:
- Freedom Seeedstudio Grove Flame Sensor Example
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Jan 03 05:17:49 2016 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalIn FLAME_SENSOR(D2);
+DigitalOut led_red(LED_RED);
+
+int main(void)
+{
+led_red = 1;
+ while(1)
+ {
+ if (!FLAME_SENSOR)
+ led_red = 0;
+ else led_red = 1;
+}
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jan 03 05:17:49 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file
