simple CCS811 driver

Dependencies:   AMS_ENS210_temp_humid_sensor

Dependents:   TBSense2_Sensor_Demo

Fork of AMS_CCS811_gas_sensor by Marcus Lee

Committer:
UHSLMarcus
Date:
Thu Jan 19 09:06:31 2017 +0000
Revision:
0:5edbf3550350
Child:
1:acfca1d3256d
starting implimentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
UHSLMarcus 0:5edbf3550350 1
UHSLMarcus 0:5edbf3550350 2 #include "AMS_CSS811.h"
UHSLMarcus 0:5edbf3550350 3
UHSLMarcus 0:5edbf3550350 4
UHSLMarcus 0:5edbf3550350 5 AMS_CCS811::AMS_CCS811(I2C * i2c, PinName n_wake_pin) {
UHSLMarcus 0:5edbf3550350 6 _n_wake_in(n_wake_pin);
UHSLMarcus 0:5edbf3550350 7 _i2c = i2c;
UHSLMarcus 0:5edbf3550350 8
UHSLMarcus 0:5edbf3550350 9 set_defaults();
UHSLMarcus 0:5edbf3550350 10 }
UHSLMarcus 0:5edbf3550350 11
UHSLMarcus 0:5edbf3550350 12 AMS_CCS811::AMS_CCS811(I2C * i2c, PinName n_wake_pin, I2C * ens210_i2c) {
UHSLMarcus 0:5edbf3550350 13 _n_wake_in(n_wake_pin);
UHSLMarcus 0:5edbf3550350 14 _i2c = i2c;
UHSLMarcus 0:5edbf3550350 15 _ens210_i2c = ens210_i2c;
UHSLMarcus 0:5edbf3550350 16
UHSLMarcus 0:5edbf3550350 17 set_defaults();
UHSLMarcus 0:5edbf3550350 18
UHSLMarcus 0:5edbf3550350 19 }
UHSLMarcus 0:5edbf3550350 20
UHSLMarcus 0:5edbf3550350 21 AMS_CCS811::~AMS_CCS811() {}
UHSLMarcus 0:5edbf3550350 22
UHSLMarcus 0:5edbf3550350 23
UHSLMarcus 0:5edbf3550350 24
UHSLMarcus 0:5edbf3550350 25 /** Private **/