Skip to content

Commit

Permalink
Adding EVO70 R2 complete firmware for factory programming
Browse files Browse the repository at this point in the history
  • Loading branch information
infinityis committed Sep 15, 2023
1 parent 2955b07 commit 9aa900d
Show file tree
Hide file tree
Showing 74 changed files with 8,720 additions and 33 deletions.
49 changes: 49 additions & 0 deletions keyboards/custommk/evo70_r2/backlight_breathing.c
@@ -0,0 +1,49 @@


/* Copyright 2023 David Hoelscher (@customMK)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "backlight_breathing.h"

extern user_config_t user_config;

void backlight_breathing_period_increment(void) {
if (user_config.breathing_period < 15) {
user_config.breathing_period++;
update_breathing();
}
}

void backlight_breathing_period_decrement(void) {
if (user_config.breathing_period > 2) {
user_config.breathing_period--;
}
else {
user_config.breathing_period = 1;
}
update_breathing();
}

void update_breathing(void) {
if (user_config.breathing_period == 1) {
breathing_disable();
}
else {
breathing_period_set(user_config.breathing_period);
breathing_enable();
}
update_kb_eeprom();
}
25 changes: 25 additions & 0 deletions keyboards/custommk/evo70_r2/backlight_breathing.h
@@ -0,0 +1,25 @@


/* Copyright 2023 David Hoelscher (@customMK)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "evo70_r2.h"

void backlight_breathing_period_increment(void);

void backlight_breathing_period_decrement(void);

void update_breathing(void);
42 changes: 40 additions & 2 deletions keyboards/custommk/evo70_r2/config.h
Expand Up @@ -67,8 +67,9 @@

#define QUANTUM_PAINTER_SUPPORTS_256_PALETTE TRUE
#define QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS TRUE
#define QUANTUM_PAINTER_DISPLAY_TIMEOUT 0

#define OLED_UPDATE_INTERVAL 66
#define OLED_UPDATE_INTERVAL 40

#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 1
Expand All @@ -86,5 +87,42 @@
#define AUDIO_PWM_DRIVER PWMD4
#define AUDIO_PWM_CHANNEL 3
#define AUDIO_PWM_PAL_MODE 2
#define AUDIO_STATE_TIMER GPTD5
#define AUDIO_STATE_TIMER GPTD9
#define AUDIO_INIT_DELAY

#define TEMPERATURE_UPDATE_PERIOD 1000

#define DEFAULT_LAYER_SONGS \
{ SONG(QWERTY_SOUND), \
SONG(DVORAK_SOUND), \
SONG(COLEMAK_SOUND), \
SONG(WORKMAN_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND), \
SONG(NO_SOUND) \
}

0 comments on commit 9aa900d

Please sign in to comment.