-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.4.h
33 lines (29 loc) · 1.59 KB
/
Settings.4.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
// MAC Address: 68:C6:3A:D6:CE:A2
#pragma once
#define DEBUG_ENABLED false
#define NUM_DEVICES 2
const char DEVICES[][25] = { "Living Room Light", "Dining Room Light" };
const int LIGHT_PINS[] = { 4, 0 };
const int SWITCH_PINS[] = { 14, 13 };
const bool USE_DIMMER[] = { false, false };
const int ZC_DIMMER_PIN = 0;
/*
* ESP8366 pinout: https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
*
*
* Label GPIO Input Output Notes
* --------------------------------------------------------------------------------
* D0 GPIO16 no interrupt no PWM or I2C support HIGH at boot - used to wake up from deep sleep
* D1 GPIO5 OK OK often used as SCL (I2C)
* D2 GPIO4 OK OK often used as SDA (I2C)
* D3 GPIO0 pulled up OK connected to FLASH button, boot fails if pulled LOW
* D4 GPIO2 pulled up OK HIGH at boot - connected to on-board LED, boot fails if pulled LOW
* D5 GPIO14 OK OK SPI (SCLK)
* D6 GPIO12 OK OK SPI (MISO)
* D7 GPIO13 OK OK SPI (MOSI)
* D8 GPIO15 pulled to GND *OK* SPI (CS) Boot fails if pulled HIGH
* RX GPIO3 *OK* RX pin (X) HIGH at boot
* TX GPIO1 TX pin (X) *OK* HIGH at boot - debug output at boot, boot fails if pulled LOW
* A0 ADC0 Analog Input (X)
*
*/