• 大小: 326KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-08
  • 语言: C/C++
  • 标签: dht11    

资源简介

包含dht11.h的库文件,C语言版,arduino内可添加,,,,,

资源截图

代码片段和文件信息

/*
This is the core graphics library for all our displays providing a common
set of graphics primitives (points lines circles etc.).  It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).

Adafruit invests time and resources providing this open source code please
support Adafruit & open-source hardware by purchasing products from Adafruit!

Copyright (c) 2013 Adafruit Industries.  All rights reserved.

Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice
  this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
 */

#include “Adafruit_GFX.h“
#include “glcdfont.c“
#ifdef __AVR__
  #include 
#elif defined(ESP8266) || defined(ESP32)
  #include 
#endif

// Many (but maybe not all) non-AVR board installs define macros
// for compatibility with existing PROGMEM-reading AVR code.
// Do our own checks and defines here for good measure...

#ifndef pgm_read_byte
 #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#endif
#ifndef pgm_read_word
 #define pgm_read_word(addr) (*(const unsigned short *)(addr))
#endif
#ifndef pgm_read_dword
 #define pgm_read_dword(addr) (*(const unsigned long *)(addr))
#endif

// Pointers are a peculiar case...typically 16-bit on AVR boards
// 32 bits elsewhere.  Try to accommodate both...

#if !defined(__INT_MAX__) || (__INT_MAX__ > 0xFFFF)
 #define pgm_read_pointer(addr) ((void *)pgm_read_dword(addr))
#else
 #define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
#endif

#ifndef min
#define min(ab) (((a) < (b)) ? (a) : (b))
#endif

#ifndef _swap_int16_t
#define _swap_int16_t(a b) { int16_t t = a; a = b; b = t; }
#endif

Adafruit_GFX::Adafruit_GFX(int16_t w int16_t h):
WIDTH(w) HEIGHT(h)
{
    _width    = WIDTH;
    _height   = HEIGHT;
    rotation  = 0;
    cursor_y  = cursor_x    = 0;
    textsize 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\
     目录           0  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\
     文件       43408  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Adafruit_GFX.cpp
     文件        7554  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Adafruit_GFX.h
     目录           0  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\
     文件       14395  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMono12pt7b.h
     文件       24441  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMono18pt7b.h
     文件       40283  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMono24pt7b.h
     文件       10592  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMono9pt7b.h
     文件       16081  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBold12pt7b.h
     文件       28925  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBold18pt7b.h
     文件       47327  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBold24pt7b.h
     文件       11574  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBold9pt7b.h
     文件       17570  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBoldOblique12pt7b.h
     文件       31692  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBoldOblique18pt7b.h
     文件       52530  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBoldOblique24pt7b.h
     文件       12639  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoBoldOblique9pt7b.h
     文件       15954  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoOblique12pt7b.h
     文件       27096  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoOblique18pt7b.h
     文件       45214  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoOblique24pt7b.h
     文件       11477  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeMonoOblique9pt7b.h
     文件       17535  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSans12pt7b.h
     文件       31039  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSans18pt7b.h
     文件       51419  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSans24pt7b.h
     文件       12478  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSans9pt7b.h
     文件       18893  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBold12pt7b.h
     文件       33181  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBold18pt7b.h
     文件       55627  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBold24pt7b.h
     文件       12992  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBold9pt7b.h
     文件       21080  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBoldOblique12pt7b.h
     文件       37952  2018-01-07 06:34  Temperature-and-Humidity-sensor-DHT11-with-OLED-display-using-arduino-master\Adafruit_GFX_Library\Fonts\FreeSansBoldOblique18pt7b.h
............此处省略56个文件信息

评论

共有 条评论