forked from secoworld/LTempTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.h
More file actions
42 lines (31 loc) · 686 Bytes
/
include.h
File metadata and controls
42 lines (31 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __INCLUDE_H_
#define __INCLUDE_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <wiringPi.h>
#include <math.h>
#define uint unsigned int
#define uchar unsigned char
//oled pins
#define SCL 21
#define SDA 22
#define RST 23
#define DC 24
#define CS 25
//Pi3 cpu temp
#define TEMP_PATH "/sys/class/thermal/thermal_zone0/temp"
#define SIZE 32
//onenet api id port
#define APi "NPmvBXGPaQz2=3p9sODpKgjLFqA="
#define Id "4657028"
//IP:183.230.40.33 端口号:80
#define Ip "183.230.40.33"
#define Port "80"
#endif