Use Input without pullup
This commit is contained in:
parent
120c89e3a4
commit
f52dd314cb
@ -252,10 +252,10 @@ void setup()
|
||||
pinMode(RIGHT_POTI_G, INPUT);
|
||||
pinMode(RIGHT_POTI_B, INPUT);
|
||||
|
||||
pinMode(POWER_PIN, INPUT_PULLUP);
|
||||
pinMode(POWER_PIN, INPUT);
|
||||
powerOnState = digitalRead(POWER_PIN) == HIGH;
|
||||
pinMode(COMPLETED_PIN, OUTPUT);
|
||||
pinMode(REGENERATE_PIN, INPUT_PULLUP);
|
||||
pinMode(REGENERATE_PIN, INPUT);
|
||||
|
||||
if (powerOnState)
|
||||
{
|
||||
@ -349,17 +349,5 @@ void loop()
|
||||
{
|
||||
digitalWrite(3, HIGH);
|
||||
}
|
||||
|
||||
// if (finishedBoard == currentBoard)
|
||||
// {
|
||||
// Serial.println("won");
|
||||
// strip.clear();
|
||||
// for (uint8_t i = 0; i < 6; i++){
|
||||
// strip.setPixelColor(i, strip.Color(255, 255, 255, 0));
|
||||
// }
|
||||
// strip.show();
|
||||
// delay(5000);
|
||||
// }
|
||||
|
||||
strip.show();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user