Browse Source

change structure, because functions in rp2040.c did not works properly. i was need access to keymap array.

pull/23174/head
Stanislav 3 weeks ago
parent
commit
503049cdae
3 changed files with 7 additions and 2 deletions
  1. +0
    -1
      keyboards/handwired/set_st/rp2040/extra.h
  2. +3
    -0
      keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c
  3. +4
    -1
      keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c

keyboards/handwired/set_st/rp2040/rp2040.c → keyboards/handwired/set_st/rp2040/extra.h View File

@ -15,7 +15,6 @@
*/
#include QMK_KEYBOARD_H
#include "keymap.c"
#ifdef OLED_ENABLE

+ 3
- 0
keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c View File

@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum keycodes {
@ -66,3 +67,5 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[LIGHT] = { ENCODER_CCW_CW(_______, _______) }
};
#endif
#include "extra.h"

+ 4
- 1
keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c View File

@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum keycodes {
@ -65,4 +66,6 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[MEDIA] = { ENCODER_CCW_CW(_______, _______) },
[LIGHT] = { ENCODER_CCW_CW(_______, _______) }
};
#endif
#endif
#include "extra.h"

Loading…
Cancel
Save