Lab1_Part7
Fork of MCP23S17_Basic_IO_Demo by
Revision 9:da6619d6f3bc, committed 2018-01-31
- Comitter:
- bjs9
- Date:
- Wed Jan 31 06:44:40 2018 +0000
- Parent:
- 8:ccf136896865
- Child:
- 10:88720ed69806
- Commit message:
- Change
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jan 31 06:34:49 2018 +0000
+++ b/main.cpp Wed Jan 31 06:44:40 2018 +0000
@@ -47,6 +47,7 @@
chip.direction(PORT_A, 0x00);
// Set all 8 Port B bits to input direction
chip.direction(PORT_B, 0xFF);
+ chip.configurePullUps(PORT_B,true);
// Start Loopback test sending out and reading back values
// loopback test uses A0 and B0 pins - so use a wire to jumper those two pins on MCP23S17 together
while (1) {
