
Example of AnalogOut.
Repeatedly raise voltage from 0V to VCC on output pin in 0.1*VCC V increments. The voltage values are printed to console.
Diff: main.cpp
- Revision:
- 5:a32148e02ecf
- Parent:
- 0:df98cf0f64e4
diff -r 351236622c35 -r a32148e02ecf main.cpp --- a/main.cpp Fri Mar 27 18:30:13 2015 +0000 +++ b/main.cpp Thu Jan 19 10:26:04 2017 -0600 @@ -17,7 +17,7 @@ #include "mbed.h" // Initialize a pins to perform analog and digital output fucntions -AnalogOut aout(p18); +AnalogOut aout(A5); DigitalOut dout(LED1); int main(void)