Skip to content

Instantly share code, notes, and snippets.

View pietroartoni's full-sized avatar
😃

Pietro Artoni pietroartoni

😃
View GitHub Profile
@pietroartoni
pietroartoni / Spectrumino: fast spectra for in vivo - heartbeat trigger
Last active February 16, 2016 02:31
Spectrumino: an Arduino Due based tool for spectroscopy
/*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