Multi - dtex/johnny-five GitHub Wiki
The Multi class constructs objects that represent a single "breakout" module attached to the physical board. The "breakout" module will itself contain 2 or more components, such as a thermistor and a hygrometer, or an altimeter and a pressure sensor.
Supported multi sensor modules:
- BMP180
- HTU21D
- MPL115A2
- MPL3115A2
- SI7020
- MS5611
This list will continue to be updated as more component support is implemented.
- 
General Options Property Type Value/Description Default Required controller string BMP180, HTU21D, MPL115A2, MPL3115A2, SI7020. The Name of the controller to use yes 
Some of these properties may or may not exist depending on whether the multi sensor supports it.
| Property Name | Description | Read Only | 
|---|---|---|
| accelerometer | An instance of Accelerometerclass. | Yes | 
| altimeter | An instance of Altimeterclass. | Yes | 
| barometer | An instance of Barometerclass. | Yes | 
| gyro | An instance of Gyroclass. | Yes | 
| hygrometer | An instance of Hygrometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 
new five.Multi({
  controller: "BMP180"
});| Property Name | Description | Read Only | 
|---|---|---|
| barometer | An instance of Barometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 

new five.Multi({
  controller: "HTU21D"
});| Property Name | Description | Read Only | 
|---|---|---|
| hygrometer | An instance of Hygrometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 
 
 
 

new five.Multi({
  controller: "MPL115A2"
});| Property Name | Description | Read Only | 
|---|---|---|
| barometer | An instance of Barometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 

new five.Multi({
  controller: "MPL3115A2"
});| Property Name | Description | Read Only | 
|---|---|---|
| altimeter | An instance of Altimeterclass. | Yes | 
| barometer | An instance of Barometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 

new five.Multi({
  controller: "SI7020"
});| Property Name | Description | Read Only | 
|---|---|---|
| hygrometer | An instance of Hygrometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
| temperature | Thermometerclass. | 
new five.Altimeter({
  controller: "MS5611"
});
| Property Name | Description | Read Only | 
|---|---|---|
| altimeter | An instance of Altimeterclass. | Yes | 
| barometer | An instance of Barometerclass. | Yes | 
| thermometer | An instance of Thermometerclass. | Yes | 
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
  var multi = new five.Multi({
    controller: "MPL115A2"
  });
  multi.on("data", function() {
    console.log("Barometer: %d", this.barometer.pressure);
    console.log("Temperature: %d", this.temperature.celsius);
  });
});var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
  var multi = new five.Multi({
    controller: "HTU21D"
  });
  multi.on("change", function() {
    console.log("temperature");
    console.log("  celsius           : ", this.temperature.celsius);
    console.log("  fahrenheit        : ", this.temperature.fahrenheit);
    console.log("  kelvin            : ", this.temperature.kelvin);
    console.log("--------------------------------------");
    console.log("Hygrometer");
    console.log("  relative humidity : ", this.hygrometer.relativeHumidity);
    console.log("--------------------------------------");
  });
});The Multi class does not have an explicit API. Refer to the individual components for their APIs
- 
data The "data" event is fired as frequently as new data becomes available. 
- 
change The "change" event is fired whenever a corresponding "change" is fired from a component. 
