HYT humidity & temp sensor polling / showing received data at TFT with capacitive touchscreen
Dependencies: FT800_2 HYT mbed
display.Draw_AboutSensor.cpp
00001 #include "display.h" 00002 00003 /************************************************************************************************************************** 00004 ************************** Display text & image about the HYT sensor ****************************************************** 00005 **************************************************************************************************************************/ 00006 void Display::AboutSensor() 00007 { 00008 // start FT800 display list 00009 StartDL(); 00010 00011 // Write text 00012 (*_TFT).DL(COLOR_RGB(0, 0, 0)); 00013 (*_TFT).DL(BEGIN(LINES)); 00014 (*_TFT).DL(LINE_WIDTH(8)); 00015 (*_TFT).DL(VERTEX2II(14, 79, 0, 0)); 00016 (*_TFT).DL(VERTEX2II(14, 220, 0, 0)); 00017 (*_TFT).Text(24, 78, 27, 0, "Capacitive polymer humidity sensor with I2C interface"); 00018 (*_TFT).DL(COLOR_RGB(9, 0, 63)); 00019 (*_TFT).Text(24, 115, 26, 0, "Measuring range: 0 .. 100% rH, -40 .. 125 C"); 00020 (*_TFT).Text(24, 135, 26, 0, "Accuracy: +/-1.8% rH (0 .. 80% rH),"); 00021 (*_TFT).Text(88, 155, 26, 0, "+/-0.2 C (0 .. 60 C)"); 00022 (*_TFT).Text(24, 175, 26, 0, "Response time: < 4 sec"); 00023 (*_TFT).Text(24, 195, 26, 0, "Operating voltage: 2.7 to 5.5 V"); 00024 (*_TFT).DL(COLOR_RGB(0, 0, 0)); 00025 (*_TFT).Text(11, 15, 30, 0, "HYT-271 sensor from IST"); 00026 00027 // Show photo 00028 (*_TFT).DL(COLOR_RGB(255, 255, 255)); 00029 (*_TFT).DL(BEGIN(BITMAPS)); 00030 (*_TFT).DL(VERTEX2II(360, 140, 2, 0)); 00031 (*_TFT).DL(END()); 00032 00033 // create link to main menu 00034 MainMenuReference(); 00035 00036 // finish FT800 display list 00037 FinishDL(); 00038 }
Generated on Tue Jul 12 2022 20:15:53 by
1.7.2