ece4180 lab1
Fork of MCP23S17_Basic_IO_Demo by
Revision 4:a361b0d3aaaf, committed 2016-09-07
- Comitter:
- boalinlai
- Date:
- Wed Sep 07 20:26:38 2016 +0000
- Parent:
- 3:2aa5a8376678
- Child:
- 5:2f407dfd888a
- Commit message:
- add test;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Sep 07 15:30:55 2016 +0000
+++ b/main.cpp Wed Sep 07 20:26:38 2016 +0000
@@ -8,7 +8,7 @@
//
// MCP23S17 datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf
// uses MCP23S17 library version 0.4
-
+//test
#include "mbed.h"
#include "MCP23S17.h"
// Create SPI bus
@@ -63,6 +63,7 @@
//if( < 0.1)
//{
chip.write(PORT_B, 0x01 & (chip2.read(PORT_B) &0x01));
+
//wait(0.05);
//}
/*else

