ECE 4333 / ECE4333Lab2

Dependencies:   mbed

Revision:
3:d3a088bc04e7
Parent:
2:5f6ac2ea5870
Child:
4:535e67099871
--- 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.