diff options
Diffstat (limited to 'keyboards/handwired/frenchdev/frenchdev.c')
| -rw-r--r-- | keyboards/handwired/frenchdev/frenchdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/handwired/frenchdev/frenchdev.c b/keyboards/handwired/frenchdev/frenchdev.c index 65f1ccce4b..818c395c8e 100644 --- a/keyboards/handwired/frenchdev/frenchdev.c +++ b/keyboards/handwired/frenchdev/frenchdev.c | |||
| @@ -84,14 +84,14 @@ uint8_t init_mcp23018(void) { | |||
| 84 | // - input : input : 1 | 84 | // - input : input : 1 |
| 85 | // - driving : output : 0 | 85 | // - driving : output : 0 |
| 86 | uint8_t data[] = {0b00000000, 0b00111111}; | 86 | uint8_t data[] = {0b00000000, 0b00111111}; |
| 87 | mcp23018_status = i2c_writeReg(I2C_ADDR, IODIRA, data, sizeof(data), I2C_TIMEOUT); | 87 | mcp23018_status = i2c_write_register(I2C_ADDR, IODIRA, data, sizeof(data), I2C_TIMEOUT); |
| 88 | 88 | ||
| 89 | if (!mcp23018_status) { | 89 | if (!mcp23018_status) { |
| 90 | // set pull-up | 90 | // set pull-up |
| 91 | // - unused : on : 1 | 91 | // - unused : on : 1 |
| 92 | // - input : on : 1 | 92 | // - input : on : 1 |
| 93 | // - driving : off : 0 | 93 | // - driving : off : 0 |
| 94 | mcp23018_status = i2c_writeReg(I2C_ADDR, GPPUA, data, sizeof(data), I2C_TIMEOUT); | 94 | mcp23018_status = i2c_write_register(I2C_ADDR, GPPUA, data, sizeof(data), I2C_TIMEOUT); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | // SREG=sreg_prev; | 97 | // SREG=sreg_prev; |
