aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorReibl János Dániel <janos.daniel.reibl@protonmail.com>2020-11-02 22:20:22 +0100
committerGitHub <noreply@github.com>2020-11-02 21:20:22 +0000
commit4ba0cb7ebc7607ba235f34c32a66ccde880ca4a0 (patch)
tree5ce269803a0ad3aa29a947e4615c5585fabe13b8 /keyboards
parent4b839db3841f001f78291373b2b6c3eca34582ed (diff)
downloadqmk_firmware-4ba0cb7ebc7607ba235f34c32a66ccde880ca4a0.tar.gz
qmk_firmware-4ba0cb7ebc7607ba235f34c32a66ccde880ca4a0.zip
Add OLED support for Riblee F411 (#10778)
* Add OLED support for Riblee F422 * Fix typo
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/handwired/riblee_f411/config.h6
-rw-r--r--keyboards/handwired/riblee_f411/halconf.h20
-rw-r--r--keyboards/handwired/riblee_f411/mcuconf.h25
-rw-r--r--keyboards/handwired/riblee_f411/rules.mk3
4 files changed, 52 insertions, 2 deletions
diff --git a/keyboards/handwired/riblee_f411/config.h b/keyboards/handwired/riblee_f411/config.h
index a1aa122e7..67399aafb 100644
--- a/keyboards/handwired/riblee_f411/config.h
+++ b/keyboards/handwired/riblee_f411/config.h
@@ -28,7 +28,7 @@
28#define MATRIX_COLS 12 28#define MATRIX_COLS 12
29 29
30#define MATRIX_ROW_PINS { A6, A5, A4, A3, A2 } 30#define MATRIX_ROW_PINS { A6, A5, A4, A3, A2 }
31#define MATRIX_COL_PINS { B10, B1, B0, B15, A8, B3, B4, B5, B6, B7, B8, B9 } 31#define MATRIX_COL_PINS { B10, B1, B0, B15, A8, B3, B4, B5, B14, A0, B8, B9 }
32#define UNUSED_PINS 32#define UNUSED_PINS
33 33
34#define DIODE_DIRECTION COL2ROW 34#define DIODE_DIRECTION COL2ROW
@@ -38,4 +38,6 @@
38 38
39#define MOUSEKEY_INTERVAL 32 39#define MOUSEKEY_INTERVAL 32
40 40
41#define TAPPING_TERM 175 \ No newline at end of file 41#define TAPPING_TERM 175
42
43#define OLED_DISPLAY_128X64
diff --git a/keyboards/handwired/riblee_f411/halconf.h b/keyboards/handwired/riblee_f411/halconf.h
new file mode 100644
index 000000000..d65408a1b
--- /dev/null
+++ b/keyboards/handwired/riblee_f411/halconf.h
@@ -0,0 +1,20 @@
1/* Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#define HAL_USE_I2C TRUE
19
20#include_next "halconf.h"
diff --git a/keyboards/handwired/riblee_f411/mcuconf.h b/keyboards/handwired/riblee_f411/mcuconf.h
new file mode 100644
index 000000000..51561d37e
--- /dev/null
+++ b/keyboards/handwired/riblee_f411/mcuconf.h
@@ -0,0 +1,25 @@
1/* Copyright 2020 Nick Brassel (tzarc)
2 * Copyright 2020 Janos Daniel Reibl <janos.daniel.reibl@protonmail.com> @riblee
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include_next "mcuconf.h"
20
21#undef STM32_I2C_USE_I2C1
22#define STM32_I2C_USE_I2C1 TRUE
23
24#undef I2C_DRIVER
25#define I2C_DRIVER I2CD1
diff --git a/keyboards/handwired/riblee_f411/rules.mk b/keyboards/handwired/riblee_f411/rules.mk
index 40a72bdcd..a44b2b058 100644
--- a/keyboards/handwired/riblee_f411/rules.mk
+++ b/keyboards/handwired/riblee_f411/rules.mk
@@ -24,3 +24,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth
24AUDIO_ENABLE = no # Audio output 24AUDIO_ENABLE = no # Audio output
25 25
26LAYOUTS = ortho_5x12 26LAYOUTS = ortho_5x12
27
28OLED_DRIVER_ENABLE = yes
29RAW_ENABLE = yes