Ethernetwebsoc

Dependencies:   C12832_lcd LM75B WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Embed: (wiki syntax)

« Back to documentation index

LM75B Class Reference

LM75B Class Reference

Library for the LM75B temperature sensor. More...

#include <LM75B.h>

Public Member Functions

 LM75B (PinName sda, PinName scl)
 Creates an instance of the class.
 ~LM75B ()
float read ()
 Reads the current temperature.

Detailed Description

Library for the LM75B temperature sensor.

The LM75B is an I2C digital temperature sensor, with a range of -55C to +125C and a 0.125C resolution.

Definition at line 37 of file LM75B.h.


Constructor & Destructor Documentation

LM75B ( PinName  sda,
PinName  scl 
)

Creates an instance of the class.

Connect module at I2C address addr using I2C port pins sda and scl. LM75B

Definition at line 3 of file LM75B.cpp.

~LM75B (  )

Destroys instance.

Definition at line 13 of file LM75B.cpp.


Member Function Documentation

float read (  )

Reads the current temperature.

Reads the temperature register of the LM75B and converts it to a useable value.

Definition at line 18 of file LM75B.cpp.