projet_ees_et5

Fork of TSL1401 by Polytech_TP_EES_M3PI

Committer:
lesuperguerrier
Date:
Fri Mar 09 10:03:39 2018 +0000
Revision:
2:a6b3b12eaaa6
Parent:
1:7a8ca2147516
projet_pololu_et5_ees

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ht 0:71198cb26156 1 #ifndef TSL1401_H
ht 0:71198cb26156 2 #define TSL1401_H
ht 0:71198cb26156 3
ht 0:71198cb26156 4 #include "mbed.h"
bouaziz 1:7a8ca2147516 5 #include <FastAnalogIn.h>
lesuperguerrier 2:a6b3b12eaaa6 6 #include "FastIO.h"
bouaziz 1:7a8ca2147516 7
ht 0:71198cb26156 8 class TSL1401
ht 0:71198cb26156 9 {
ht 0:71198cb26156 10 public:
ht 0:71198cb26156 11 TSL1401(PinName s, PinName c, PinName a );
ht 0:71198cb26156 12 ~TSL1401();
ht 0:71198cb26156 13 int *Capture( int LineStart, int LineStop); /*caputure image */
ht 0:71198cb26156 14
ht 0:71198cb26156 15
ht 0:71198cb26156 16 int ImageData[128]; /* カメラの値 */
ht 0:71198cb26156 17 int Max,Min; /*カメラ読み取り最大値、最小値 */
lesuperguerrier 2:a6b3b12eaaa6 18 //FastOut<p9> TAOS_SI;
lesuperguerrier 2:a6b3b12eaaa6 19 //FastOut<p10> TAOS_CLK;
lesuperguerrier 2:a6b3b12eaaa6 20 FastOut<p28> TAOS_SI;
lesuperguerrier 2:a6b3b12eaaa6 21 FastOut<p27> TAOS_CLK;
ht 0:71198cb26156 22 private:
ht 0:71198cb26156 23 PinName SI;
ht 0:71198cb26156 24 PinName CLK;
ht 0:71198cb26156 25 AnalogIn *A0;
bouaziz 1:7a8ca2147516 26
ht 0:71198cb26156 27 };
ht 0:71198cb26156 28 #endif