Dominik Tlapak
/
I2C
V1.0
main.cpp
- Committer:
- Kelrath1984
- Date:
- 2020-10-06
- Revision:
- 0:25699a99e08b
- Child:
- 1:e1a54bf8215a
File content as of revision 0:25699a99e08b:
#include "mbed.h" class MyClass1{ public: MyClass() : m_messwert(0.0) {} ~MyClass() {} double getMesswert() {return m_messwert;} private: double m_messwert; }; class I2CSensor{ private: DigitalOut m_sda; DigitalOut m_scl; public: I2CSensor(PinName sda, PinName scl) : m_sda(sda), m_scl(scl) {} ~I2CSensor(){} inline float read(){}; private: I2C i2c(m_sda,m_scl); }; int main() { return 0; }