d

Dependencies:   mbed DS1621 4dGENIE

Files at this revision

API Documentation at this revision

Comitter:
__joss__
Date:
Tue Feb 16 14:15:44 2021 +0000
Commit message:
s

Changed in this revision

4dGENIE.lib Show annotated file Show diff for this revision Revisions of this file
DS1621.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r c8f90c6586ea 4dGENIE.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/4dGENIE.lib	Tue Feb 16 14:15:44 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/chris215/code/4dGENIE/#9196f72fc325
diff -r 000000000000 -r c8f90c6586ea DS1621.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DS1621.lib	Tue Feb 16 14:15:44 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/Bas/code/DS1621/#20bfb7df0470
diff -r 000000000000 -r c8f90c6586ea main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Feb 16 14:15:44 2021 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "ds1621.h"
+
+#define DS1621_ADDR 0x90
+
+Serial pc(USBTX, USBRX);
+I2C i2c_ds(p28, p27);  
+DS1621 ds(&i2c_ds, DS1621_ADDR); 
+float temp, Htemp;
+
+int main() {
+    ds.StartConversion(1);
+    //ds.SetConfig(0x01); //1shot
+    ds.SetConfig(0x00); //polarity
+        while(1) {
+            ds.GetTemp(READ_TEMPERATURE, &temp);
+            pc.printf("%f \n\r", temp);
+            wait(1.0);
+            pc.printf("\n\r");
+        }
+}
\ No newline at end of file
diff -r 000000000000 -r c8f90c6586ea mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Feb 16 14:15:44 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file