This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*This sketch is for Arduino Due and is made for getting fast spectra in vivo. | |
The software asks for the first wavelength of the spectrum, the wavelength step, the length of the spectrum and for the laser intensity during the spectrum. | |
Imaging is triggered by the ECG signal, to be in phase with the heartbeat. | |
Feel free to fork it! Comments and suggestions are appreciated. | |
*/ | |
//global variables | |
double alpha; | |
int nframes = 10; //number of frames to be mediated for each wavelength | |
int lambdamin; //first lambda | |
int deltalambda; //lambda step |