BME3915(NBDJZ) / Mbed 2 deprecated STM32_ADC_Sound_Sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bnagata
Date:
Fri Feb 15 23:03:25 2019 +0000
Commit message:
read microphone

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
diff -r 000000000000 -r 478eeb04f8ec main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 15 23:03:25 2019 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+int main()
+{
+    AnalogIn sensor(A6);
+   FILE *outputfile;
+        outputfile = fopen("NODEcode.txt","w");
+    while(1){
+        float value= sensor.read();
+        wait_ms(5);
+        fprintf(outputfile,"%f ",&value);
+        
+    }
+}
diff -r 000000000000 -r 478eeb04f8ec mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Feb 15 23:03:25 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file