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
Diff: main.cpp
- Revision:
- 3:d3a088bc04e7
- Parent:
- 2:5f6ac2ea5870
- Child:
- 4:535e67099871
diff -r 5f6ac2ea5870 -r d3a088bc04e7 main.cpp
--- a/main.cpp Fri Jan 22 20:00:25 2016 +0000
+++ b/main.cpp Fri Jan 22 20:03:03 2016 +0000
@@ -12,6 +12,7 @@
AnalogIn AIn(p26);
//Analog Outputs
AnalogOut AOut(p27);
+AnalogOut BOut(p28);
char DisplayMenu(void){
@@ -63,7 +64,10 @@
}
int fAnalogIn(){//read the analog values at two analog input pins and display the converted
-//values. Note: the A/D converter on the MBED processor is unipolar with a dynamic range of 0 to 3.3V.
+//values. Note: the A/D converter on the MBED processor is unipolar with a dynamic range of 0 to 3.3V.
+int AInCheck = AIn.read();
+AOut.write(AInCheck);
+BOut.write(AInCheck);
}
int fPWMOut(){ //generate a PWM output using one of the six PWM channels on the MBED.