]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/light_ws2812.c
Add Makefile in keymap dir
[qmk_firmware.git] / quantum / light_ws2812.c
index 6edbc0f2bd7b0c077551a5346ea6d486afd230c7..55bdd9cd81929dffea09310730243c91d49f77c2 100755 (executable)
@@ -16,8 +16,6 @@
 #include <util/delay.h>
 #include "debug.h"
 
-#define RGBW_BB_TWI 1
-
 #ifdef RGBW_BB_TWI
 
 // Port for the I2C
@@ -72,7 +70,7 @@ void I2C_WriteBit(unsigned char c)
 
 // Inits bitbanging port, must be called before using the functions below
 //
-void I2C_Init()
+void I2C_Init(void)
 {
     I2C_PORT &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK));
 
@@ -84,7 +82,7 @@ void I2C_Init()
 
 // Send a START Condition
 //
-void I2C_Start()
+void I2C_Start(void)
 {
     // set both to high at the same time
     I2C_DDR &= ~ ((1 << I2C_DAT) | (1 << I2C_CLK));
@@ -99,7 +97,7 @@ void I2C_Start()
 
 // Send a STOP Condition
 //
-void I2C_Stop()
+void I2C_Stop(void)
 {
     I2C_CLOCK_HI();
     _delay_us(I2C_DELAY);
@@ -171,7 +169,6 @@ void inline ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t leds)
     }
     I2C_Stop();
     SREG=sreg_prev;
-    // TWCR = (1<<TWINT) | (1<<TWSTA) | (1<<TWEN);
     TWCR=twcr_prev;
   #endif