mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-27 01:48:30 +03:00
Code moved
This commit is contained in:
13
native/src/inc/include.h
Normal file
13
native/src/inc/include.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <Arduino.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <ArduinoOTA.h>
|
||||
#include <FS.h>
|
||||
#include <PubSubClient.h>
|
||||
#include <Bounce2.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <Ticker.h>
|
||||
|
||||
#include "../config/hardware.h"
|
||||
#include "../config/software.h"
|
||||
#include "../config/mqtt.h"
|
||||
#include "types.h"
|
||||
22
native/src/inc/types.h
Normal file
22
native/src/inc/types.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef TYPES_H_
|
||||
#define TYPES_H_
|
||||
|
||||
#define LED_ON HIGH
|
||||
#define LED_OFF LOW
|
||||
#define RELAY_ON LOW
|
||||
#define RELAY_OFF HIGH
|
||||
|
||||
typedef enum {
|
||||
IDLE,
|
||||
CALL
|
||||
} EState;
|
||||
|
||||
typedef enum {
|
||||
NO_ACTION,
|
||||
OPEN,
|
||||
OPEN_BY_BUTTON,
|
||||
REJECT,
|
||||
REJECT_BY_BUTTON
|
||||
} EAction;
|
||||
|
||||
#endif // TYPES_H_
|
||||
Reference in New Issue
Block a user