Now you can use NC as InterruptIn
Fork of X_NUCLEO_6180XA1 by
Diff: Components/STMPE1600/stmpe1600_class.h
- Revision:
- 12:71d589e6fd2c
- Parent:
- 10:4954b09b72d8
- Child:
- 15:454710d17358
--- a/Components/STMPE1600/stmpe1600_class.h Tue Oct 06 09:43:25 2015 +0200 +++ b/Components/STMPE1600/stmpe1600_class.h Tue Oct 13 14:22:45 2015 +0200 @@ -94,7 +94,7 @@ /* set the exppinname as output */ dev_i2c.i2c_read(data, expdevaddr, GPDR_0_7, 1); dev_i2c.i2c_read(&data[1], expdevaddr, GPDR_8_15, 1); - *(uint16_t*)data = *(uint16_t*)data | (1<<(uint16_t)exppinname); // set gopio as out + *(uint16_t*)data = *(uint16_t*)data | (1<<(uint16_t)exppinname); // set gpio as out dev_i2c.i2c_write(data, expdevaddr, GPDR_0_7, 1); dev_i2c.i2c_write(&data[1], expdevaddr, GPDR_8_15, 1); write(lvl); @@ -132,7 +132,7 @@ /* set the exppinname as input pin direction */ dev_i2c.i2c_read(data, expdevaddr, GPDR_0_7, 1); dev_i2c.i2c_read(&data[1], expdevaddr, GPDR_8_15, 1); - *(uint16_t*)data = *(uint16_t*)data & (uint16_t)(~(1<<(uint16_t)exppinname)); // set gopio as in + *(uint16_t*)data = *(uint16_t*)data & (uint16_t)(~(1<<(uint16_t)exppinname)); // set gpio as in dev_i2c.i2c_write(data, expdevaddr, GPDR_0_7, 1); dev_i2c.i2c_write(&data[1], expdevaddr, GPDR_8_15, 1); }