cacca
ESERCITAZIONE 2 PUNTO3
Revision 0:a55060489642, committed 2016-10-10
- Comitter:
- enricoderosa
- Date:
- Mon Oct 10 14:04:25 2016 +0000
- Commit message:
- lotegrandi
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 Mon Oct 10 14:04:25 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX);
+AnalogIn Ain(A0);
+float ADCdata;
+
+
+int main() {
+ pc.printf("ADC Data Values..."); //penso a uno vero
+
+ while(1) {
+ ADCdata=Ain*3.3;
+ wait(0.5);
+ pc.printf("%1.3f",ADCdata);
+ pc.printf("V/n/r");
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Oct 10 14:04:25 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3 \ No newline at end of file