@@ -48,7 +48,7 @@ Available from the MySensors store - http://www.mysensors.org/store/
48
48
* FTDI USB to TTL Serial Adapter
49
49
* Capacitors (10uf and .1uf)
50
50
* 3.3v voltage regulator
51
- * Resistors (270 & 10K)
51
+ * Resistors (270, 1K & 10K)
52
52
* Female Dupont Cables
53
53
* 1602 LCD (with I2C Interface)
54
54
* LED
@@ -162,6 +162,7 @@ time_t lastTimeRun = 0;
162
162
const int latchPin = 8 ;
163
163
const int clockPin = 4 ;
164
164
const int dataPin = 7 ;
165
+ const int outputEnablePin = 6 ;
165
166
//
166
167
byte clock[8 ] = {0x0 , 0xe , 0x15 , 0x17 , 0x11 , 0xe , 0x0 }; // fetching time indicator
167
168
byte raindrop[8 ] = {0x4 , 0x4 , 0xA , 0xA , 0x11 , 0xE , 0x0 ,}; // fetching Valve Data indicator
@@ -182,6 +183,8 @@ void setup()
182
183
pinMode (clockPin, OUTPUT);
183
184
pinMode (dataPin, OUTPUT);
184
185
pinMode (ledPin, OUTPUT);
186
+ pinMode (outputEnablePin, OUTPUT);
187
+ digitalWrite (outputEnablePin, LOW);
185
188
pinMode (waterButtonPin, INPUT_PULLUP);
186
189
// pinMode(waterButtonPin, INPUT);
187
190
attachInterrupt (digitalPinToInterrupt (waterButtonPin), PushButton, RISING); // May need to change for your Arduino model
0 commit comments