mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add gpio module
This commit is contained in:
parent
2349c816ee
commit
09859382e2
@ -1,4 +1,4 @@
|
|||||||
#include "hasp_conf.h"
|
#include "hasp_conf.h" // load first
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "ArduinoJson.h"
|
#include "ArduinoJson.h"
|
||||||
|
|
||||||
@ -8,6 +8,7 @@
|
|||||||
#include "hasp_gui.h"
|
#include "hasp_gui.h"
|
||||||
#include "hasp.h"
|
#include "hasp.h"
|
||||||
#include "hasp_conf.h"
|
#include "hasp_conf.h"
|
||||||
|
#include "hasp_gpio.h"
|
||||||
|
|
||||||
#if HASP_USE_SPIFFS
|
#if HASP_USE_SPIFFS
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
@ -58,10 +59,6 @@ void setup()
|
|||||||
/****************************
|
/****************************
|
||||||
* Constant initialzations
|
* Constant initialzations
|
||||||
***************************/
|
***************************/
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
pinMode(D1, OUTPUT);
|
|
||||||
pinMode(D2, INPUT_PULLUP);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Init Storage */
|
/* Init Storage */
|
||||||
#if HASP_USE_EEPROM
|
#if HASP_USE_EEPROM
|
||||||
@ -86,6 +83,7 @@ void setup()
|
|||||||
* Apply User Configuration
|
* Apply User Configuration
|
||||||
***************************/
|
***************************/
|
||||||
debugSetup(settings[F("debug")]);
|
debugSetup(settings[F("debug")]);
|
||||||
|
gpioSetup(settings[F("gpio")]);
|
||||||
|
|
||||||
/* Init Graphics */
|
/* Init Graphics */
|
||||||
// TFT_eSPI screen = TFT_eSPI();
|
// TFT_eSPI screen = TFT_eSPI();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user