Rivian Irvine Team
/
TCTF_Control_Main
Control Code with I/O and ADC working
Diff: MCP23008/MCP23008.cpp
- Revision:
- 7:8a5e65e63e2a
- Parent:
- 6:c980535393ed
- Child:
- 9:8cd14861dc63
- Child:
- 12:1cada1fe4743
--- a/MCP23008/MCP23008.cpp Wed Mar 07 18:50:10 2018 +0000 +++ b/MCP23008/MCP23008.cpp Tue Mar 20 19:22:55 2018 +0000 @@ -47,7 +47,7 @@ i2c.write((addrI2C<<1)|(I2C_WRITE), data, 2); i2c.write((addrI2C<<1)|(I2C_WRITE), data2, 2); - wait(0.2); + wait(0.1); } void MCP23008::init(){ @@ -57,7 +57,7 @@ io_setup[1] = 0x00; //turn all pins to outputs i2c.write((addrI2C<<1)|(I2C_WRITE), io_setup, 2); - wait(0.2); + wait(0.1); //Set all outputs to off GPIO_Pin_Status = 0x00;