Patrick McNamara / Mbed 2 deprecated ADC_SDcard_serial

Dependencies:   BufferedSerial SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ReadADC.h Source File

ReadADC.h

00001 #include "mbed.h"
00002 
00003 
00004 
00005 
00006 
00007 /************************************************************************
00008 * readADC will recieve an interrupt and store ADC data to an array
00009 *
00010 ************************************************************************/
00011 void readADC()
00012 {
00013     //pc.printf("Start reading ADC...");
00014     for (int i = 0; i < ADCReadCount; i++)
00015     {
00016         squibCLT_array[i] = squibCLT_ADC.read();
00017         arrayCount++;
00018     }
00019     //pc.printf("Done\r\n");
00020 }
00021