This is the device firmware for the imagingBoard on the DIY 3D Printable Raspberry Pi Raman Spectrometer. For more details please visit: http://hackaday.io/project/1279
Diff: main.cpp
- Revision:
- 8:5fcd8a2149f0
- Parent:
- 7:0f8b3da4fb24
- Child:
- 9:841663cf312c
--- a/main.cpp Tue Aug 19 07:09:07 2014 +0000 +++ b/main.cpp Tue Aug 19 07:27:52 2014 +0000 @@ -18,8 +18,8 @@ int masterFreq_period = 20; //microseconds int masterFreq_width = 10; //microseconds -int shiftGate_period = 80; //microseconds -int shiftGate_width = 40; //microseconds +int shiftGate_period = 66; //microseconds +int shiftGate_width = 33; //microseconds int none = 0; int veryLow = 1; @@ -121,7 +121,7 @@ wait_us(sensitivity); state = readOut_Finish; for (int pixelNumber=0; pixelNumber<signalElements; pixelNumber++) { - raspi.printf("%i\t%4.12f\r\n", pixelNumber, (pixelValue[pixelNumber] * 5) / 4096.0); + raspi.printf("%i\t%4.12f\r\n", pixelNumber, 5 - ((pixelValue[pixelNumber] * 5) / 4096.0)); } // raspi.printf("---\r\n"); break;