mirror of
https://github.com/kevinveenbirkenbach/physical-interface.git
synced 2024-11-14 22:31:04 +01:00
Moved pin layout to config
This commit is contained in:
parent
04b52ca4ef
commit
0577c51cd4
@ -1,3 +1,19 @@
|
|||||||
|
/**
|
||||||
|
* Configuration file example
|
||||||
|
*/
|
||||||
const char *ssid = "";
|
const char *ssid = "";
|
||||||
const char *password = "";
|
const char *password = "";
|
||||||
const char* hostname = "physical-interface";
|
const char* hostname = "physical-interface";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pin layout
|
||||||
|
*/
|
||||||
|
const uint16_t PIN_RADIO_TRANSMITTER = D7;
|
||||||
|
const uint16_t PIN_RADIO_RECIEVER = D8;
|
||||||
|
const uint16_t PIN_PIR = D1;
|
||||||
|
const uint16_t PIN_DHT = D6;
|
||||||
|
const uint16_t PIN_IR_RECIEVER = D4;
|
||||||
|
const uint16_t PIN_IR_SEND = D2;
|
||||||
|
const uint16_t PIN_LDR = A0;
|
||||||
|
const uint16_t PIN_ACTIVE_BUZZER = D5;
|
||||||
|
const uint16_t PINS_SOIL_MOISTURE[] = {D3,D9,D10};
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Loading classes
|
* Loading classes
|
||||||
*/
|
*/
|
||||||
#ifndef UNIT_TEST
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#endif
|
|
||||||
#include <IRremoteESP8266.h>
|
#include <IRremoteESP8266.h>
|
||||||
#include <IRrecv.h>
|
#include <IRrecv.h>
|
||||||
#include <IRsend.h>
|
#include <IRsend.h>
|
||||||
@ -20,14 +18,7 @@
|
|||||||
/**
|
/**
|
||||||
* Define constants
|
* Define constants
|
||||||
*/
|
*/
|
||||||
const uint16_t PIN_RADIO_TRANSMITTER = D7;
|
const uint16_t NONE = 65535; // Used to define not activated pins.
|
||||||
const uint16_t PIN_RADIO_RECIEVER = D8;
|
|
||||||
const uint16_t PIN_PIR = D1;
|
|
||||||
const uint16_t PIN_DHT = D6;
|
|
||||||
const uint16_t PIN_IR_RECIEVER = D4;
|
|
||||||
const uint16_t PIN_IR_SEND = D2;
|
|
||||||
const uint16_t PIN_LDR = A0;
|
|
||||||
const uint16_t PIN_ACTIVE_BUZZER = D5;
|
|
||||||
|
|
||||||
const char* PARAMETER_PLUG_ADDRESS="plug_address";
|
const char* PARAMETER_PLUG_ADDRESS="plug_address";
|
||||||
const char* PARAMETER_PLUG_ID="plug_id";
|
const char* PARAMETER_PLUG_ID="plug_id";
|
||||||
@ -59,7 +50,6 @@ MDNSResponder mdns;
|
|||||||
ESP8266WebServer server ( 80 );
|
ESP8266WebServer server ( 80 );
|
||||||
IRrecv irrecv(PIN_IR_RECIEVER);
|
IRrecv irrecv(PIN_IR_RECIEVER);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter functions
|
* Setter functions
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user