Toilet monitor is starting...
DEBUG: Entered WiFlyDevice::begin()
DEBUG: Entered reboot
DEBUG: Entered findInResponse
DEBUG: Entered requireFlowControl
DEBUG: Entered enterCommandMode
DEBUG: Entered findInResponse
DEBUG: Entered enterCommandMode
DEBUG: Entered findInResponse
connecting...
DEBUG: Entered enterCommandMode
DEBUG: Entered findInResponse
void setup() {
Serial.begin(9600);
Serial.println("Toilet monitor is starting...");
// pinMode(CS_WIFI,OUTPUT);
// pinMode(CS_LCD,OUTPUT);
lcd.init(PHILLIPS); // Initializes lcd, using an EPSON driver
lcd.contrast(80); // 40's usually a good contrast value
lcd.clear(RED); // oooh, teal!
WiFly.begin();
WiFly.setIdleDisconnect();
if (!WiFly.join(ssid, passphrase)) {
Serial.println("Association failed.");
while (1) {
// Hang on failure.
}
}
// give the Wifi shield a second to initialize:
delay(1000);
Serial.println("connecting...");
if(digitalRead(9) == LOW) Serial.println("lcd active");
if(digitalRead(10) == LOW) Serial.println("WiFly active");
lcd.clear(BLUE); // oooh, teal!
}
strange :S it's seems that both are HIGH