-
Notifications
You must be signed in to change notification settings - Fork 2
/
gpio.h
44 lines (29 loc) · 1019 Bytes
/
gpio.h
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
43
44
/*
ESP8266 Monitor
Broadcasts the current state of an ESP8266 and DS18b20 temperature monitor,
whilst keeping current draw to a minimum - ideal for battery powered projects.
https://eartoearoak.com/software/esp8266_monitor
Copyright 2018 Al Brown
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The license is available from <http://www.gnu.org/licenses/gpl-2.0.html>.
*/
#ifndef HEADER_GPIO
#define HEADER_GPIO
#include <Arduino.h>
#include <ArduinoJson.h>
#include "config.h"
class Gpio {
public:
void begin();
void get(JsonObject& json);
private:
static uint8_t _gpios[];
static bool _states[];
};
#endif