Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.
Dependencies: UniGraphic mbed vt100
Diff: af_utils/mbedSPI.h
- Revision:
- 0:ce97f6d34336
diff -r 000000000000 -r ce97f6d34336 af_utils/mbedSPI.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/af_utils/mbedSPI.h Fri Feb 23 05:40:22 2018 +0000 @@ -0,0 +1,19 @@ +#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_ */ \ No newline at end of file