Compare commits

...

2 Commits

Author SHA1 Message Date
Jack Humbert fbb056c502 make a5 high when not in use 2019-05-06 23:36:27 -04:00
XScorpion2 e83e316555 [Keyboard] Enable RGBLIGHT_ANIMATIONS by default on the Zen rev2 (#5805)
* Enable RGBLIGHT_ANIMATIONS by default on the Zen rev2

* Also fixing OLED as it is upside down
2019-05-06 15:29:13 -07:00
3 changed files with 10 additions and 4 deletions
+1
View File
@@ -65,6 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* ws2812 RGB LED */
#define RGBLED_NUM 34 // Number of LEDs
#define RGBLIGHT_ANIMATIONS
/*
* Feature disable options
+2 -2
View File
@@ -24,7 +24,7 @@ const char* layer_name_user(uint32_t layer) {
__attribute__((weak))
void render_status(void) {
// Setup for 90 degree rendering because it's awesome!
// Setup for 270 degree rendering because it's awesome!
// It can house 16 lines of text, with 5 letters each line
// Render to mode icon
static const char PROGMEM mode_logo[2][4] = {
@@ -49,7 +49,7 @@ void render_status(void) {
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
if (is_keyboard_master())
return OLED_ROTATION_90; // flips the display 90 degrees if mainhand
return OLED_ROTATION_270; // flips the display 270 degrees if mainhand
return rotation;
}
+7 -2
View File
@@ -85,10 +85,13 @@ static void gpt_cb8(GPTDriver *gptp);
#endif
#define START_CHANNEL_1() gptStart(&GPTD6, &gpt6cfg1); \
gptStartContinuous(&GPTD6, 2U)
gptStartContinuous(&GPTD6, 2U); \
palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG);
#define START_CHANNEL_2() gptStart(&GPTD7, &gpt7cfg1); \
gptStartContinuous(&GPTD7, 2U)
#define STOP_CHANNEL_1() gptStopTimer(&GPTD6)
#define STOP_CHANNEL_1() gptStopTimer(&GPTD6); \
palSetPadMode(GPIOA, 5, PAL_MODE_OUTPUT_PUSHPULL); \
palSetPad(GPIOA, 5);
#define STOP_CHANNEL_2() gptStopTimer(&GPTD7)
#define RESTART_CHANNEL_1() STOP_CHANNEL_1(); \
START_CHANNEL_1()
@@ -298,6 +301,8 @@ void audio_init() {
*/
palSetPadMode(GPIOA, 4, PAL_MODE_INPUT_ANALOG);
palSetPadMode(GPIOA, 5, PAL_MODE_INPUT_ANALOG);
palSetPad(GPIOA, 5);
dacStart(&DACD1, &dac1cfg1);
dacStart(&DACD2, &dac1cfg2);