OpenSprinkler Forums Comments, Suggestions, Requests Opensprinkler on ESP8266 Reply To: Opensprinkler on ESP8266

#48154

pbecchi
Participant

This is a pins.h section for your HW schematic :

#elif PROTO==13 //ADD NEW N. for your prototype
#define SDA_PIN gpio
#define SCL_PIN gpio
#define SHIFT_REG

#define PIN_SR_LATCH gpio // shift register latch pin
#define PIN_SR_DATA gpio // shift register data pin
#define PIN_SR_CLOCK gpio // shift register clock pin
#define PIN_SR_OE GPio // shift register output enable pin
#undef OPENSPRINKLER_ARDUINO_DISCRETE
#define SPIFFSDFAT
#define EEPROM_ESP
#define PIN_BUTTON_1 gpio
#define PIN_BUTTON_2 gpio
#define PIN_BUTTON_3 gpio

#define STA_HIGH LOW // low station output on for Relay
#define STA_LOW HIGH // high station output off for Relay

// OLED 128*64 DISPLAY
#define LCD_SSD1306
#define LCD_RST gpio // LCD rst pin
#define LCD_ADDR 0x3c. // LCD address

You have to insert appropriate GPio n. and add this section to pins.h …don’t change any other define!