summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorkrusli <rusli.kenneth@gmail.com>2017-09-16 11:19:13 +1000
committerJack Humbert <jack.humb@gmail.com>2017-09-16 09:34:29 -0400
commitd281cd5c40fc2ecf4d3b3d568cc4b793eaf31907 (patch)
treec6203f799d4cc3cf387b310e791ee6840de04913 /keyboards
parent69ab37fca1f891af6a0101766dc74642c5c2fa82 (diff)
Change max brightness level for iOS
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/mechmini/keymaps/default/keymap.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/mechmini/keymaps/default/keymap.c b/keyboards/mechmini/keymaps/default/keymap.c
index cf3d174f9c..b3d2345e95 100644
--- a/keyboards/mechmini/keymaps/default/keymap.c
+++ b/keyboards/mechmini/keymaps/default/keymap.c
@@ -18,6 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action_layer.h"
#include "quantum.h"
+#define MAX_BRIGHTNESS 15
+#define MAX_BRIGHTNESS_IOS 5 // max brightness suitable for iOS devices
+
#define _BL 0
#define _FN1 1
#define _FN2 2
@@ -61,8 +64,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
*/
-uint8_t current_level = 8;
-uint8_t prev_current_level = 8;
+uint8_t current_level = 2;
+uint8_t prev_current_level = 2;
int is_on = 0;
enum macro_id {
@@ -90,7 +93,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
}
break;
case RGB_LEVEL_UP:
- if (event.pressed && current_level < 15) {
+ if (event.pressed && current_level < MAX_BRIGHTNESS_IOS) {
current_level++;
prev_current_level++;
}