#include
#define DHT11PIN 13 //DHT11 data接13引脚
dht11 DHT11;
#include "Adafruit_GFX.h"// Hardware-specific library
#include
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0
#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin
MCUFRIEND_kbv ucg;
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
//左边仪表
void draw(int value) {
int cx = 77; //圆心x
int cy = 120; //圆心y
int cr = 75; //圆半径r
float angle; //数值转换指针偏转角