Gas Pressure Display Updated Power control for Pressure sensor added

Dependencies:   UniGraphic mbed vt100

af_utils/mbedSPI.h

Committer:
Rhyme
Date:
2018-02-16
Revision:
0:37c8ecde13c2

File content as of revision 0:37c8ecde13c2:

#ifndef _MBEDSPI_H_
#define _MBEDSPI_H_
#include "mbed.h"
#include "afSPI.h"

class mbedSPI : public afSPI {
public:
    mbedSPI(PinName mosi, PinName miso, PinName sckl, PinName cs) ;
    virtual void begin() ;
    virtual void beginSPI() ;
    virtual void endSPI() ;
    virtual void transfer(char *bytes,int len) ;
private:
    SPI         _spi ;
    DigitalOut  _cs ;
} ;
    

#endif /* _MBEDSPI_H_ */