Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI TS_DISCO_F429ZI BSP_DISCO_F429ZI
scd30.cpp@12:98dd45560c50, 2022-03-17 (annotated)
- Committer:
- garj
- Date:
- Thu Mar 17 09:38:06 2022 +0000
- Revision:
- 12:98dd45560c50
- Parent:
- 7:17a87b6d8516
increased time between start up screens
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| garj | 7:17a87b6d8516 | 1 | #include "mbed.h" |
| garj | 7:17a87b6d8516 | 2 | #include "scd30.h" |
| garj | 7:17a87b6d8516 | 3 | |
| garj | 7:17a87b6d8516 | 4 | //----------------------------------------------------------------------------- |
| garj | 7:17a87b6d8516 | 5 | // Constructor |
| garj | 7:17a87b6d8516 | 6 | |
| garj | 7:17a87b6d8516 | 7 | Scd30::Scd30(PinName sda, PinName scl, int i2cFrequency, PinName rdy) : _i2c(sda, scl), _rdy(rdy){ |
| garj | 7:17a87b6d8516 | 8 | _i2c.frequency(i2cFrequency); |
| garj | 7:17a87b6d8516 | 9 | _co2 = 0; |
| garj | 7:17a87b6d8516 | 10 | } |
| garj | 7:17a87b6d8516 | 11 | |
| garj | 7:17a87b6d8516 | 12 | uint8_t Scd30::init(){ |
| garj | 7:17a87b6d8516 | 13 | return SCD_ERROR_NO_ERROR; |
| garj | 7:17a87b6d8516 | 14 | } |
| garj | 7:17a87b6d8516 | 15 | |
| garj | 7:17a87b6d8516 | 16 | bool Scd30::isMeasurementReady(){ |
| garj | 7:17a87b6d8516 | 17 | return true; |
| garj | 7:17a87b6d8516 | 18 | } |
| garj | 7:17a87b6d8516 | 19 | |
| garj | 7:17a87b6d8516 | 20 | uint8_t Scd30::readMeasurement(){ |
| garj | 7:17a87b6d8516 | 21 | return SCD_ERROR_NO_ERROR; |
| garj | 7:17a87b6d8516 | 22 | } |