projet_ees_et5
Fork of TSL1401 by
Revision 2:a6b3b12eaaa6, committed 2018-03-09
- Comitter:
- lesuperguerrier
- Date:
- Fri Mar 09 10:03:39 2018 +0000
- Parent:
- 1:7a8ca2147516
- Commit message:
- projet_pololu_et5_ees
Changed in this revision
TSL1401.cpp | Show annotated file Show diff for this revision Revisions of this file |
TSL1401.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7a8ca2147516 -r a6b3b12eaaa6 TSL1401.cpp --- a/TSL1401.cpp Fri Jan 26 10:52:00 2018 +0000 +++ b/TSL1401.cpp Fri Mar 09 10:03:39 2018 +0000 @@ -28,8 +28,7 @@ int *TSL1401::Capture( int LineStart, int LineStop) { int i; - FastOut<p9> TAOS_SI; - FastOut<p10> TAOS_CLK; + /* DigitalOut TAOS_SI(SI); DigitalOut TAOS_CLK(CLK); @@ -37,6 +36,7 @@ Max = 0,Min = 70000; TAOS_SI_HIGH; TAOS_CLK_HIGH; + TAOS_CLK_HIGH; TAOS_SI_LOW; ImageData[0] = 0; volatile int *pp=ImageData;
diff -r 7a8ca2147516 -r a6b3b12eaaa6 TSL1401.h --- a/TSL1401.h Fri Jan 26 10:52:00 2018 +0000 +++ b/TSL1401.h Fri Mar 09 10:03:39 2018 +0000 @@ -3,6 +3,7 @@ #include "mbed.h" #include <FastAnalogIn.h> +#include "FastIO.h" class TSL1401 { @@ -14,6 +15,10 @@ int ImageData[128]; /* カメラの値 */ int Max,Min; /*カメラ読み取り最大値、最小値 */ + //FastOut<p9> TAOS_SI; + //FastOut<p10> TAOS_CLK; + FastOut<p28> TAOS_SI; + FastOut<p27> TAOS_CLK; private: PinName SI; PinName CLK;