Dominik Tlapak
/
I2C
V1.0
Diff: main.cpp
- Revision:
- 0:25699a99e08b
- Child:
- 1:e1a54bf8215a
diff -r 000000000000 -r 25699a99e08b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 06 16:14:56 2020 +0000 @@ -0,0 +1,32 @@ +#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; +} \ No newline at end of file