pwm ws driver (not working)

This commit is contained in:
Jack Humbert 2018-05-18 01:32:24 -04:00
parent 9fccfc8dd5
commit 7c19e9fa04
11 changed files with 352 additions and 631 deletions

View file

@ -18,7 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIG_H
#define CONFIG_H
#ifdef __AVR__
#include "config_common.h"
#endif
/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED

View file

@ -125,4 +125,9 @@
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 1
#define WS2812_LED_N 1
#define RGBLED_NUM WS2812_LED_N
#define WS2812_TIM_N 1
#define WS2812_TIM_CH 1
#endif

View file

@ -111,7 +111,7 @@
* @brief Enables the PWM subsystem.
*/
#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
#define HAL_USE_PWM FALSE
#define HAL_USE_PWM TRUE
#endif
/**

View file

@ -182,7 +182,7 @@
* PWM driver system settings.
*/
#define STM32_PWM_USE_ADVANCED FALSE
#define STM32_PWM_USE_TIM1 FALSE
#define STM32_PWM_USE_TIM1 TRUE
#define STM32_PWM_USE_TIM2 FALSE
#define STM32_PWM_USE_TIM3 FALSE
#define STM32_PWM_USE_TIM4 FALSE

View file

@ -14,8 +14,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rev6.h"
#include "rgblight.h"
void matrix_init_kb(void) {
rgblight_enable();
rgblight_mode(1);
rgblight_setrgb(0xFF, 0xFF, 0xFF);
matrix_init_user();
}

View file

@ -52,4 +52,5 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
CUSTOM_MATRIX = yes # Custom matrix file
AUDIO_ENABLE = yes
RGBLIGHT_ENABLE = yes
# SERIAL_LINK_ENABLE = yes