AD_Flash

Dependencies:   TextLCD mbed

Committer:
HarishMekali
Date:
Mon Feb 18 14:30:54 2013 +0000
Revision:
0:ba3588c03b72
ADC_Flash;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HarishMekali 0:ba3588c03b72 1 #include "mbed.h"
HarishMekali 0:ba3588c03b72 2
HarishMekali 0:ba3588c03b72 3 AnalogIn a_in(p18);
HarishMekali 0:ba3588c03b72 4 LocalFileSystem local("local");
HarishMekali 0:ba3588c03b72 5 float a;
HarishMekali 0:ba3588c03b72 6 int main()
HarishMekali 0:ba3588c03b72 7 {
HarishMekali 0:ba3588c03b72 8 FILE *fp=fopen("/local/bms.csv","a");
HarishMekali 0:ba3588c03b72 9 a=a_in.read();
HarishMekali 0:ba3588c03b72 10 fprintf(fp,"%0.3f",a);
HarishMekali 0:ba3588c03b72 11 fclose(fp);
HarishMekali 0:ba3588c03b72 12 }