mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-08 17:29:09 +00:00
cleanup
This commit is contained in:
parent
84879f28a3
commit
1a680c1d6a
4 changed files with 4 additions and 3 deletions
|
@ -67,7 +67,6 @@ uint8_t i2c_start(uint8_t address)
|
||||||
|
|
||||||
uint8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout)
|
uint8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout)
|
||||||
{
|
{
|
||||||
// FIXME: Next steps: Add a print here, copy this file to your rgb_matrix firmware. Compare both.
|
|
||||||
i2c_address = address;
|
i2c_address = address;
|
||||||
i2cStart(&I2C_DRIVER, &i2cconfig);
|
i2cStart(&I2C_DRIVER, &i2cconfig);
|
||||||
return i2cMasterTransmitTimeout(&I2C_DRIVER, (i2c_address >> 1), data, length, 0, 0, MS2ST(timeout));
|
return i2cMasterTransmitTimeout(&I2C_DRIVER, (i2c_address >> 1), data, length, 0, 0, MS2ST(timeout));
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* Copyright 2017 Jason Williams
|
/* Copyright 2017 Jason Williams
|
||||||
* Copyright 2018 Jack Humbert
|
* Copyright 2018 Jack Humbert
|
||||||
|
* Copyright 2019 Clueboard
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* Copyright 2017 Jason Williams
|
/* Copyright 2017 Jason Williams
|
||||||
* Copyright 2018 Jack Humbert
|
* Copyright 2018 Jack Humbert
|
||||||
|
* Copyright 2019 Clueboard
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
Loading…
Reference in a new issue