MPL115A1 sensor library
Revision 2:97c80e1c0ab2, committed 2018-12-12
- Comitter:
- jurica238814
- Date:
- Wed Dec 12 19:26:04 2018 +0100
- Parent:
- 1:3b754d29069f
- Commit message:
- Some modifications
Changed in this revision
MPL115A1.cpp | Show annotated file Show diff for this revision Revisions of this file |
MPL115A1.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPL115A1.cpp Wed Dec 12 18:56:02 2018 +0100 +++ b/MPL115A1.cpp Wed Dec 12 19:26:04 2018 +0100 @@ -20,7 +20,7 @@ static float convertB2(uint16_t b2); static float convertC12(uint16_t c12); -MPL115A1::MPL115A1(SPI &spi, NRF52_DigitalOut &cs) : spi(spi), cs(cs) {} +MPL115A1::MPL115A1(SPI &spi, DigitalOut &cs) : spi(spi), cs(cs) {} float MPL115A1::getA0() {
--- a/MPL115A1.h Wed Dec 12 18:56:02 2018 +0100 +++ b/MPL115A1.h Wed Dec 12 19:26:04 2018 +0100 @@ -3,18 +3,17 @@ */ #include "mbed.h" -#include "nrf52_digital.h" #ifndef __MPL115A1_H__ #define __MPL115A1_H__ class MPL115A1{ public: - MPL115A1(SPI &spi, NRF52_DigitalOut &cs); + MPL115A1(SPI &spi, DigitalOut &cs); float getPressure(); private: SPI &spi; - NRF52_DigitalOut &cs; + DigitalOut &cs; float getA0(); float getB1(); float getB2();