![](/media/cache/profiles/cfee7edeb341158110ece5fba9440f58.jpg.50x50_q85.jpg)
this simple program is an example to let u know how the ADC can be enabled in w7500
main.cpp
- Committer:
- shia
- Date:
- 2015-12-23
- Revision:
- 0:60d6189b9b0d
- Child:
- 1:6b3079b2bfcc
File content as of revision 0:60d6189b9b0d:
#include "mbed.h" AnalogIn Current(A0); int meas; int main() { printf("\n GSAS Micro Systems \r\n"); wait(0.1f); while(1) { meas = Current.read_u16(); printf("value = %d\r\n",meas); wait(0.1f); } }