Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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) {
