jlkjñ

Dependencies:   mbed TextLCD max6675 DHT11

Files at this revision

API Documentation at this revision

Comitter:
juanespitiarobotica
Date:
Wed Dec 15 23:57:36 2021 +0000
Commit message:
hjjh

Changed in this revision

DHT11.lib Show annotated file Show diff for this revision Revisions of this file
TextLCD.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
max6675.lib 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 21ed3e67799f DHT11.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DHT11.lib	Wed Dec 15 23:57:36 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/s_inoue_mbed/code/DHT11/#e91c151d1798
diff -r 000000000000 -r 21ed3e67799f TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Wed Dec 15 23:57:36 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/juanespitiarobotica/code/TextLCD/#95892122f5d0
diff -r 000000000000 -r 21ed3e67799f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Dec 15 23:57:36 2021 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "max6675.h"
+#include "TextLCD.h"
+#include "DHT11.h"
+
+DigitalOut s1(D8);
+DigitalOut led(LED2);
+AnalogIn poten(A5);
+I2C i2c_lcd(D5,D7);
+DHT11 med(D6);
+TextLCD_I2C lcd(&i2c_lcd, 0x4E,  TextLCD::LCD16x2, TextLCD::HD44780);
+max6675 tem(D12,D13,D11);
+Serial pc(USBTX,USBRX);
+
+int main()
+{
+    lcd.setMode(TextLCD::DispOn);
+    lcd.setBacklight(TextLCD::LightOn);
+    lcd.setCursor(TextLCD::CurOff_BlkOff);
+    int tempera=med.readData();
+    int cf=0;
+    while(1){
+        int tempera=med.readData();
+        float po=poten.read_u16();
+        float temp = tem.gettemp(cf);
+        lcd.locate(0,0);
+        lcd.printf("tempera:%1.2f\n",temp);
+        printf("%1.2f\n", po);
+        wait(0.5);
+        
+    }
+}
diff -r 000000000000 -r 21ed3e67799f max6675.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max6675.lib	Wed Dec 15 23:57:36 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/juanespitiarobotica/code/max6675/#74731b8476a0
diff -r 000000000000 -r 21ed3e67799f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Dec 15 23:57:36 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file