PCB lives now in its own git repo https://git.la10cy.net/DeltaLima/CanGrow-12V-PCB
51 lines
1 KiB
C
51 lines
1 KiB
C
/*
|
|
*
|
|
* include/CanGrow_ESP8266.h - ESP8266 specific header file
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
#ifdef ESP8266
|
|
|
|
// GPIO 2 Boot fails if pulled to LOW
|
|
#define PinWIPE 2
|
|
#define PinWIPE_default HIGH
|
|
#define Pin_I2C_SCL 5
|
|
#define Pin_I2C_SDA 4
|
|
|
|
/* https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
|
|
*
|
|
* free usable pins
|
|
* - GPIO 0 / D3 boot fails if pulled LOW
|
|
* - GPIO 12 / D6
|
|
* - GPIO 13 / D7
|
|
* - GPIO 14 / D5
|
|
* - GPIO 15 / D8 Boot fails if pulled HIGH
|
|
* - GPIO 16 / D0
|
|
*/
|
|
|
|
const byte GPIOindex_length = 6;
|
|
// initialize pinIndex with all usable GPIOs
|
|
GPIO_Index GPIOindex[] = {{ 255, 255 },
|
|
{ 0, BOOTFAILS_LOW },
|
|
{ 12 },
|
|
{ 13 },
|
|
{ 14 },
|
|
{ 15, BOOTFAILS_HIGH },
|
|
{ 16, NO_PWM } };
|
|
|
|
#endif
|
|
|
|
|
|
/* CanGrow 12V PCB v0.6 Pin assignment
|
|
*
|
|
*
|
|
* LED - D6 (GPIO 12)
|
|
* FAN1 - D5 (GPIO 14)
|
|
* FAN2 - D3 (GPIO 0)
|
|
* PUMP - D0 (GPIO 16)
|
|
*
|
|
* WaterlevelVCC - D7 (GPIO 13)
|
|
* SoilmoistureVCC - D8 (GPIO 15)
|
|
*
|
|
*/
|