OpenSprinkler Forums Hardware Questions OpenSprinkler Bee (OSBee) Running: Esp8266 Open Sprinkler on OS Bee 2.0 hardware? Reply To: Running: Esp8266 Open Sprinkler on OS Bee 2.0 hardware?

#49560

darren.c.withers
Participant

Hi Paolo,

I managed to get your code to compile however I need a bit of help on the Pins.h for non-latching valves as I’m using on OSBee 2.0 hardware.

What options do I need to have set below ? I tried removing the // from the //#define OSBEE_NOLATCH line the code fails to compile and complains

OpenSprinkler.cpp:1207: error: ‘options’ was not declared in this scope

if (options[OPTION_SOT].ival != OSB_SOT_LATCH)

#ifdef OSBEE
///////////////////////defines for OS Bee////////////////////////////////////////////////////
#define PIN_COM 0x23 //pin for valves return line
#define MAX_NUMBER_ZONES 3 //num.of zones_______________________needed
#define st_pins OpenSprinkler::station_pins //pins used for attached Zones
#define PIN_BST_PWR 14 //pin boost power____________________needed //for OS Bee 2.0
#define PIN_BST_EN 0x24 //bin boost enable___________________needed
#define OSB_SOT_LATCH 0 //value of option for non latching valves___for OS Bee 2.0
#if OSBEE==1
#define PIN_COM 02 //pin for valves return line
#define PIN_BST_PWR 15 //pin boost power____________________needed //for OS Bee 2.0
#define PIN_BST_EN 16 //bin boost enable___________________needed
//#define OSBEE_NOLATCH
#endif
////////////////////////////////////////////////////////////////////////////////////////////////
#endif