mirror of https://github.com/arendst/Tasmota.git
20 lines
390 B
C++
20 lines
390 B
C++
// Get firmware version of Grove Multichannel Gas Sensor
|
|
#include <Wire.h>
|
|
#include "MutichannelGasSensor.h"
|
|
|
|
#define SENSOR_ADDR 0X04 // default to 0x04
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(115200);
|
|
gas.begin(SENSOR_ADDR);
|
|
|
|
unsigned char version = gas.getVersion();
|
|
Serial.print("Version = ");
|
|
Serial.println(version);
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
// nothing to do
|
|
} |