Skip to content

Commit

Permalink
Remove all of the deprecated RGB defines
Browse files Browse the repository at this point in the history
Fixes qmk#3641
  • Loading branch information
drashna authored and jackhumbert committed Oct 22, 2018
1 parent 00b6f14 commit 7e99d86
Show file tree
Hide file tree
Showing 58 changed files with 62 additions and 180 deletions.
3 changes: 0 additions & 3 deletions drivers/avr/ws2812.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,4 @@ void ws2812_sendarray_mask(uint8_t *array,uint16_t length, uint8_t pinmask);
#define CONCAT_EXP(a, b) CONCAT(a, b)
#endif

// #define ws2812_PORTREG CONCAT_EXP(PORT,ws2812_port)
// #define ws2812_DDRREG CONCAT_EXP(DDR,ws2812_port)

#endif /* LIGHT_WS2812_H_ */
4 changes: 1 addition & 3 deletions keyboards/6ball/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN F7
#define RGBLIGHT_TIMER

#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 6 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
Expand Down
4 changes: 1 addition & 3 deletions keyboards/9key/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN F7
#define RGBLIGHT_TIMER

#define RGBLED_NUM 1 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
Expand Down
3 changes: 0 additions & 3 deletions keyboards/amj40/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD


ifndef QUANTUM_DIR
include ../../../../Makefile
Expand Down
10 changes: 1 addition & 9 deletions keyboards/amj40/keymaps/fabian/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Options
# change to "no" to disable the options, or define them in the Makefile in
# change to "no" to disable the options, or define them in the Makefile in
# the appropriate keymap folder that will get included automatically
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
Expand All @@ -17,11 +17,3 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.

# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD


ifndef QUANTUM_DIR
include ../../../../Makefile
endif
8 changes: 0 additions & 8 deletions keyboards/amj40/keymaps/jetpacktuxedo/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,3 @@ RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.

# Do not enable SLEEP_LED_ENABLE. It uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD


ifndef QUANTUM_DIR
include ../../../../Makefile
endif
10 changes: 1 addition & 9 deletions keyboards/amj40/keymaps/myee/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Options
# change to "no" to disable the options, or define them in the Makefile in
# change to "no" to disable the options, or define them in the Makefile in
# the appropriate keymap folder that will get included automatically
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
Expand All @@ -17,11 +17,3 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.

# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD


ifndef QUANTUM_DIR
include ../../../../Makefile
endif
2 changes: 1 addition & 1 deletion keyboards/bfo9000/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN B4
#define RGBLIGHT_TIMER

#define RGBLED_NUM 20 // Number of LEDs

/*
Expand Down
5 changes: 1 addition & 4 deletions keyboards/blockey/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN B1
#define RGBLIGHT_TIMER
#define RGBLED_NUM 4
#define ws2812_PORTREG PORTB
#define ws2812_DDRREG DDRB

#define RGBLED_NUM 4
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17

Expand Down
4 changes: 1 addition & 3 deletions keyboards/chocopad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
#define RGBLIGHT_VAL_STEP 8
#endif
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 4
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

#endif
4 changes: 1 addition & 3 deletions keyboards/crkbd/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
6 changes: 2 additions & 4 deletions keyboards/deltasplit75/v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand All @@ -85,4 +83,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_FUNCTION


#endif
#endif
4 changes: 1 addition & 3 deletions keyboards/dilly/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
#define RGBLIGHT_VAL_STEP 8
#endif
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 10
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

#endif
4 changes: 1 addition & 3 deletions keyboards/ergo42/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
4 changes: 1 addition & 3 deletions keyboards/ergodash/mini/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 20 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
4 changes: 1 addition & 3 deletions keyboards/ergodash/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 24 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
4 changes: 1 addition & 3 deletions keyboards/ergodash/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 24 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
5 changes: 1 addition & 4 deletions keyboards/ergotravel/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand All @@ -83,4 +81,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION

2 changes: 1 addition & 1 deletion keyboards/fortitude60/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* ws2812 RGB LED */
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN B5
#define RGBLIGHT_TIMER

#define RGBLED_NUM 18 // Number of LEDs */
#endif
/*
Expand Down
4 changes: 1 addition & 3 deletions keyboards/fourier/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 14 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

/*
* Feature disable options
Expand Down
13 changes: 3 additions & 10 deletions keyboards/gh60/keymaps/dbroqua/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,26 +158,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/*
* RGB Underglow
* These settings are for the F4 by default:
*
*
* #define ws2812_PORTREG PORTF
* #define ws2812_DDRREG DDRF
*
* #define ws2812_pin PF4
* #define RGBLED_NUM 14 // Number of LEDs
* #define RGBLIGHT_HUE_STEP 10
* #define RGBLIGHT_SAT_STEP 17
* #define RGBLIGHT_VAL_STEP 17
*
* The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects.
* To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations.
* The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects.
* To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations.
* For details, please check this keymap. keyboard/planck/keymaps/yang/keymap.c
*/

/* Deprecated code below
#define ws2812_PORTREG PORTF
#define ws2812_DDRREG DDRF
#define ws2812_pin PF4
*/
#define RGB_DI_PIN F4
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 11 // Number of LEDs
Expand Down
13 changes: 3 additions & 10 deletions keyboards/gh60/keymaps/robotmaxtron/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/*
* RGB Underglow
* These settings are for the F4 by default:
*
*
* #define ws2812_PORTREG PORTF
* #define ws2812_DDRREG DDRF
*
* #define ws2812_pin PF4
* #define RGBLED_NUM 14 // Number of LEDs
* #define RGBLIGHT_HUE_STEP 10
* #define RGBLIGHT_SAT_STEP 17
* #define RGBLIGHT_VAL_STEP 17
*
* The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects.
* To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations.
* The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects.
* To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations.
* For details, please check this keymap. keyboard/planck/keymaps/yang/keymap.c
*/

/* Deprecated code below
#define ws2812_PORTREG PORTF
#define ws2812_DDRREG DDRF
#define ws2812_pin PF4
*/
#define RGB_DI_PIN F4
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 8 // Number of LEDs
Expand Down
4 changes: 1 addition & 3 deletions keyboards/handwired/dactyl_manuform/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs


Expand All @@ -74,5 +74,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION


2 changes: 0 additions & 2 deletions keyboards/handwired/qc60/proto/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLED_NUM 1 // Number of LEDs
// #define ws2812_PORTREG PORTD
// #define ws2812_DDRREG DDRD
4 changes: 1 addition & 3 deletions keyboards/helix/pico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

//#define RGBLED_NUM 12 // Number of LEDs. see ./keymaps/default/config.h
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

// Helix keyboard RGB LED support
//#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
Expand Down
5 changes: 1 addition & 4 deletions keyboards/helix/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER
#define RGBLED_NUM 12 // Number of LEDs
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

#define RGBLED_NUM 12 // Number of LEDs
/*
* Feature disable options
* These options are also useful to firmware size reduction.
Expand Down
4 changes: 1 addition & 3 deletions keyboards/helix/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

//#define RGBLED_NUM 12 // Number of LEDs. see ./keymaps/default/config.h
#define ws2812_PORTREG PORTD
#define ws2812_DDRREG DDRD

// Helix keyboard RGB LED support
//#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
Expand Down
2 changes: 1 addition & 1 deletion keyboards/iris/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs

/*
Expand Down
2 changes: 1 addition & 1 deletion keyboards/iris/rev1_led/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs

/*
Expand Down
2 changes: 1 addition & 1 deletion keyboards/iris/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER

#define RGBLED_NUM 12 // Number of LEDs

/*
Expand Down
Loading

0 comments on commit 7e99d86

Please sign in to comment.