Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Klassendesign LM75B
Aufgabe
Implementieren Sie zu folgender LM75B.h Header Datei die Klasse:
#ifndef LM75B_H
#define LM75B_H
// LM75B I2C Adresse
#define LM75B_ADDR 0x90
// LM75B Register
#define LM75B_Conf 0x01
#define LM75B_Temp 0x00
class LM75B
{
public:
LM75B(PinName sda, PinName scl); // I2C Pins übergeben p28, p27
~LM75B();
float read();
private:
I2C i2c;
};
#endif