Permalink
Browse files

Removed manual pin mode resets since it makes some keepons go back in…

…to normal mode.
  • Loading branch information...
1 parent 292a1e9 commit f2b6b2395f644cd9b1cf4333d9a213b7f991a100 @qdot committed May 15, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/arudino/keepon_i2c_comm/keepon_i2c_comm.pde
View
12 src/arudino/keepon_i2c_comm/keepon_i2c_comm.pde
@@ -36,11 +36,13 @@ void bootup()
pinMode(A5, OUTPUT);
digitalWrite(A5, LOW);
while(analogRead(0) < 512);
- delay(1000);
- pinMode(A4, OUTPUT);
- digitalWrite(A4, HIGH);
- pinMode(A5, OUTPUT);
- digitalWrite(A5, HIGH);
+ delay(1000);
+ // Bringing the lines back up causes some keepons to
+ // boot into normal mode. Commenting out for now.
+ //pinMode(A4, OUTPUT);
+ //digitalWrite(A4, HIGH);
+ //pinMode(A5, OUTPUT);
+ //digitalWrite(A5, HIGH);
Wire.begin();
Serial.write((uint8_t)0);
}

0 comments on commit f2b6b23

Please sign in to comment.