Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add init function to RGBLight driver struct #23076

Merged
merged 8 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move hacker_dvorak under shine
  • Loading branch information
fauxpark committed Feb 14, 2024
commit 94b62c7a6d79944f129d1a6beede65d6f6aad21f
3 changes: 1 addition & 2 deletions keyboards/ergodox_ez/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 19,7 @@ SWAP_HANDS_ENABLE= no # Allow swapping hands of keyboard
RGB_MATRIX_ENABLE = no # enable later

# project specific files
SRC = matrix.c \
led_i2c.c
SRC = matrix.c
I2C_DRIVER_REQUIRED = yes

# Disable unsupported hardware
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 18,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifdef RGBLIGHT_ENABLE

# include "ergodox_ez.h"
# include "ws2812.h"
#include "ergodox_ez.h"
#include "ws2812.h"

void setleds_custom(rgb_led_t *led, uint16_t led_num) {
uint16_t length = 0;
Expand Down Expand Up @@ -67,5 65,3 @@ const rgblight_driver_t rgblight_driver = {
.init = ws2812_init,
.setleds = setleds_custom,
};

#endif // RGBLIGHT_ENABLE
1 change: 1 addition & 0 deletions keyboards/ergodox_ez/shine/rules.mk
Original file line number Diff line number Diff line change
@@ -1,2 1,3 @@
RGBLIGHT_ENABLE = yes
WS2812_DRIVER_REQUIRED = yes
SRC = rgblight_custom.c
Loading