Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
Diff: ReadADC.h
- Revision:
- 4:0e2980186bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ReadADC.h Thu Jun 16 21:17:30 2016 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + + + + + +/************************************************************************ +* readADC will recieve an interrupt and store ADC data to an array +* +************************************************************************/ +void readADC() +{ + //pc.printf("Start reading ADC..."); + for (int i = 0; i < ADCReadCount; i++) + { + squibCLT_array[i] = squibCLT_ADC.read(); + arrayCount++; + } + //pc.printf("Done\r\n"); +} +