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: mbed TextLCD max6675 DHT11
Revision 0:21ed3e67799f, committed 2021-12-15
- Comitter:
- juanespitiarobotica
- Date:
- Wed Dec 15 23:57:36 2021 +0000
- Commit message:
- hjjh
Changed in this revision
--- /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
--- /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
--- /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);
+
+ }
+}
--- /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
--- /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