jlñkjfasña

Dependencies:   mbed TextLCD max6675

Files at this revision

API Documentation at this revision

Comitter:
juanespitiarobotica
Date:
Fri Dec 03 12:03:54 2021 +0000
Commit message:
jbljk

Changed in this revision

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-os.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 9f27b8759b12 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri Dec 03 12:03:54 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/KRAI-ITB-2019/code/TextLCD/#95892122f5d0
diff -r 000000000000 -r 9f27b8759b12 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 03 12:03:54 2021 +0000
@@ -0,0 +1,42 @@
+#include "mbed.h"
+#include "max6675.h"
+#include "rtos.h"
+#include "TextLCD.h"
+
+I2C i2c_lcd(D7,D6);
+TextLCD_I2C lcd(&i2c_lcd, 0x4E,  TextLCD::LCD16x2, TextLCD::HD44780);
+max6675 sensor(D12,D13,D5);
+Serial pc(USBTX,USBRX);
+Thread thread;
+
+Thread thread2;
+Thread thread3;
+
+
+void pantallalcd()
+{
+    lcd.setMode(TextLCD::DispOn);
+    lcd.setBacklight(TextLCD::LightOn);
+    lcd.setCursor(TextLCD::CurOff_BlkOff);
+}
+
+void temp_hora()
+{
+    int cf = 1;
+    while (1) {
+       
+        float temp = sensor.gettemp(cf);
+        lcd.locate(0,0);
+        lcd.printf("temp:%1.2f",temp);
+        Thread::wait(1000);
+    }
+}
+
+
+int main()
+{
+    thread2.start ((temp_hora));
+    thread3.start((pantallalcd));
+    thread.join();
+    
+}
diff -r 000000000000 -r 9f27b8759b12 max6675.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max6675.lib	Fri Dec 03 12:03:54 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/star297/code/max6675/#74731b8476a0
diff -r 000000000000 -r 9f27b8759b12 mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Fri Dec 03 12:03:54 2021 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#c9e63f14085f5751ff5ead79a7c0382d50a813a2
diff -r 000000000000 -r 9f27b8759b12 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 03 12:03:54 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file