diff options
| author | dbroqua <dbroqua@mousur.org> | 2017-04-02 23:27:57 +0200 |
|---|---|---|
| committer | dbroqua <dbroqua@mousur.org> | 2017-04-02 23:27:57 +0200 |
| commit | e7347ff0de93ff823462b3ff2b4136b44dc576c0 (patch) | |
| tree | 286e2a78fee74eb370641a981d2c81c8e02942b4 /quantum/light_ws2812.c | |
| parent | 9e72b7e7e97f9ae92c7eb1de66aa03cad047baf6 (diff) | |
| parent | 24ec8f509703cbaf9de7b41d251dbb7fcd339559 (diff) | |
| download | qmk_firmware-e7347ff0de93ff823462b3ff2b4136b44dc576c0.tar.gz qmk_firmware-e7347ff0de93ff823462b3ff2b4136b44dc576c0.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'quantum/light_ws2812.c')
| -rwxr-xr-x | quantum/light_ws2812.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/light_ws2812.c b/quantum/light_ws2812.c index a883b1388..55bdd9cd8 100755 --- a/quantum/light_ws2812.c +++ b/quantum/light_ws2812.c | |||
| @@ -70,7 +70,7 @@ void I2C_WriteBit(unsigned char c) | |||
| 70 | 70 | ||
| 71 | // Inits bitbanging port, must be called before using the functions below | 71 | // Inits bitbanging port, must be called before using the functions below |
| 72 | // | 72 | // |
| 73 | void I2C_Init() | 73 | void I2C_Init(void) |
| 74 | { | 74 | { |
| 75 | I2C_PORT &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); | 75 | I2C_PORT &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); |
| 76 | 76 | ||
| @@ -82,7 +82,7 @@ void I2C_Init() | |||
| 82 | 82 | ||
| 83 | // Send a START Condition | 83 | // Send a START Condition |
| 84 | // | 84 | // |
| 85 | void I2C_Start() | 85 | void I2C_Start(void) |
| 86 | { | 86 | { |
| 87 | // set both to high at the same time | 87 | // set both to high at the same time |
| 88 | I2C_DDR &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); | 88 | I2C_DDR &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK)); |
| @@ -97,7 +97,7 @@ void I2C_Start() | |||
| 97 | 97 | ||
| 98 | // Send a STOP Condition | 98 | // Send a STOP Condition |
| 99 | // | 99 | // |
| 100 | void I2C_Stop() | 100 | void I2C_Stop(void) |
| 101 | { | 101 | { |
| 102 | I2C_CLOCK_HI(); | 102 | I2C_CLOCK_HI(); |
| 103 | _delay_us(I2C_DELAY); | 103 | _delay_us(I2C_DELAY); |
