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: main.cpp
- Revision:
- 0:0b26aa1c549c
diff -r 000000000000 -r 0b26aa1c549c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Mar 02 09:31:37 2021 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+Serial pc(USBTX, USBRX);
+AnalogIn Ain(p18);
+float ADCdata=0;
+float b=0.3050313;
+int main() {
+ pc.printf("ADC Data Values... \n\r");
+ while (1) {
+ ADCdata=Ain/b;
+ pc.printf("%f \n\r",ADCdata);
+ wait(0.5);
+ }
+}
\ No newline at end of file