projet_ees_et5

Fork of TSL1401 by Polytech_TP_EES_M3PI

TSL1401.h

Committer:
lesuperguerrier
Date:
2018-03-09
Revision:
2:a6b3b12eaaa6
Parent:
1:7a8ca2147516

File content as of revision 2:a6b3b12eaaa6:

#ifndef TSL1401_H
#define TSL1401_H

#include "mbed.h"
#include <FastAnalogIn.h>
#include "FastIO.h"

class   TSL1401
{
    public:
        TSL1401(PinName s, PinName c, PinName a );
        ~TSL1401();
        int *Capture( int LineStart, int LineStop);     /*caputure image */

    
        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;
        AnalogIn *A0;
        
 };
#endif