Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Commit 5cb6800

Browse files
committed
Initialize remaining board pins.
1 parent e58887c commit 5cb6800

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

robot-control-src/robot-control-src.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,15 @@ void setup()
8181
Serial.printf("\n begin program '%s'\n", __FILE__);
8282
Wire.begin(board::sda, board::scl);
8383
board::ioExpander1.init();
84+
85+
// initialize pins
8486
pinMode(board::debugLed, OUTPUT);
8587
digitalWrite(board::debugLed, LOW);
88+
pinMode(board::ioExpanderIntB, INPUT_PULLUP);
89+
pinMode(board::ioExpanderIntAInv, INPUT);
90+
pinMode(board::leftBumper, INPUT_PULLUP);
91+
pinMode(board::rightBumper, INPUT_PULLUP);
92+
8693
drives::leftDrive.init();
8794
drives::rightDrive.init();
8895

0 commit comments

Comments
 (0)