diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-02-24 20:09:20 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-02-24 20:09:20 +0100 |
commit | 86668d2be24abb4af71cf8af74438cc66472b25a (patch) | |
tree | 3384d5547210e7ace0e3cb972f410330c79593cd /src/app | |
parent | fd393a4cd5e2df69ac8dce6313b842d3aadaed72 (diff) |
i2cdetect: ccs811: more concise output, use low-power measuring mode
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/i2cdetect/main.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index 92c812c..27e35bf 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -126,12 +126,10 @@ void loop(void) #endif #ifdef DRIVER_CCS811 ccs811.read(); - kout << "CCS811 eCO₂ : " << ccs811.eco2 << " ppm" << endl; - kout << "CCS811 tVOC : " << ccs811.tvoc << " ppb" << endl; kout << bin; - kout << "CCS811 status: " << ccs811.status << endl; - kout << "CCS811 error: " << ccs811.error_id << endl; + kout << "CCS811 status / error: " << ccs811.status << " / " << ccs811.error_id << endl; kout << dec; + kout << "CCS811 tVOC / eCO₂ : " << ccs811.tvoc << " ppb / " << ccs811.eco2 << " ppm" << endl; #endif #ifdef DRIVER_HDC1080 /* @@ -201,7 +199,7 @@ int main(void) arch.delay_ms(65); kout << "CCS811 status: " << ccs811.getStatus() << endl; kout << dec; - ccs811.setMode(1); + ccs811.setMode(2); //arch.delay_ms(50); #endif #ifdef DRIVER_HDC1080 |