| Zakładka z wyszukiwarką danych komponentów |
|
DFR0868 Arkusz danych(PDF) 63 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0868 Arkusz danych(HTML) 63 Page - DFROBOT |
|
63 / 89 page ![]() 2023/10/12 11:20 Beetle-ESP32-C3 RISC-V Core Development Board Wiki - DFRobot https://wiki.dfrobot.com/SKU_DFR0868_Beetle_ESP32_C3 63/89 Serial.begin(115200); u8g2.begin(); u8g2.setFontPosTop();//When using drawStr to display strings, the default standard is the coordinates at the lower left c //Initialize the sensor while (sht3x.begin() != 0) { Serial.println("Failed to Initialize the chip, please confirm the wire connection"); delay(1000); } Serial.print("Chip serial number"); Serial.println(sht3x.readSerialNumber()); if(!sht3x.softReset()){ Serial.println("Failed to Initialize the chip...."); } } void loop() { //Clean the screen u8g2.clearBuffer(); //Use temperature and humidity read assignments for display float temp = sht3x.getTemperatureC(); float humi = sht3x.getHumidityRH(); //Display temperature u8g2.setFont(u8g2_font_osb18_tf); // Choose font and size (see official) u8g2.drawStr(5,10,"Temp");//Write the character at the specified position u8g2.setFont(u8g2_font_t0_18b_tr); u8g2.setCursor(75, 15);//Display starts from this position u8g2.print(temp); //Display humidity u8g2.setFont(u8g2_font_osb18_tf); u8g2.drawStr(5,40,"Humi"); u8g2.setFont(u8g2_font_t0_18b_tr); u8g2.setCursor(75, 45); u8g2.print(humi); u8g2.sendBuffer(); delay(1000); } |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |