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
Diff: scd30.cpp
- Revision:
- 7:17a87b6d8516
diff -r 3470127df0ab -r 17a87b6d8516 scd30.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/scd30.cpp Fri Mar 19 07:25:46 2021 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "scd30.h"
+
+//-----------------------------------------------------------------------------
+// Constructor
+
+Scd30::Scd30(PinName sda, PinName scl, int i2cFrequency, PinName rdy) : _i2c(sda, scl), _rdy(rdy){
+ _i2c.frequency(i2cFrequency);
+ _co2 = 0;
+}
+
+uint8_t Scd30::init(){
+ return SCD_ERROR_NO_ERROR;
+}
+
+bool Scd30::isMeasurementReady(){
+ return true;
+}
+
+uint8_t Scd30::readMeasurement(){
+ return SCD_ERROR_NO_ERROR;
+}