summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorhmj6502 <temporarythrowaway@tutamail.com>2025-11-06 14:13:57 +0000
committerhmj6502 <temporarythrowaway@tutamail.com>2025-11-06 14:13:57 +0000
commit0c62ee9811f8eb3c591132e9f77c6ea2f880ad82 (patch)
treeb2914e3e1e932b47633f5600e73918516005c222 /firmware
downloadmediapad-0c62ee9811f8eb3c591132e9f77c6ea2f880ad82.tar.gz
mediapad-0c62ee9811f8eb3c591132e9f77c6ea2f880ad82.tar.bz2
mediapad-0c62ee9811f8eb3c591132e9f77c6ea2f880ad82.zip
initial commitHEADmain
this was never a git repo so dates are inaccurate
Diffstat (limited to 'firmware')
-rw-r--r--firmware/QMK/config.h9
-rw-r--r--firmware/QMK/keyboard.json38
-rw-r--r--firmware/QMK/keymaps/default/keymap.c21
-rw-r--r--firmware/QMK/readme.md27
-rw-r--r--firmware/QMK/rules.mk6
5 files changed, 101 insertions, 0 deletions
diff --git a/firmware/QMK/config.h b/firmware/QMK/config.h
new file mode 100644
index 0000000..28a5d66
--- /dev/null
+++ b/firmware/QMK/config.h
@@ -0,0 +1,9 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#define ENCODER_A_PINS { GP4 }
+#define ENCODER_B_PINS { GP1 }
+
+#define I2C_DRIVER I2CD1
+#define I2C1_SDA_PIN GP6
+#define I2C1_SCL_PIN GP7
diff --git a/firmware/QMK/keyboard.json b/firmware/QMK/keyboard.json
new file mode 100644
index 0000000..0ea26cd
--- /dev/null
+++ b/firmware/QMK/keyboard.json
@@ -0,0 +1,38 @@
+{
+ "manufacturer": "Hashim",
+ "keyboard_name": "mediapad",
+ "maintainer": "not_a_robot",
+ "bootloader": "rp2040",
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "command": false,
+ "console": false,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
+ "matrix_pins": {
+ "direct": [
+ ["GP26", "GP27", "GP28", "GP29", "GP0"]
+ ]
+ },
+ "processor": "RP2040",
+ "url": "",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0x0000",
+ "vid": "0xFEED"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+ {"matrix": [0, 3], "x": 3, "y": 0},
+ {"matrix": [0, 4], "x": 4, "y": 0}
+ ]
+ }
+ }
+}
diff --git a/firmware/QMK/keymaps/default/keymap.c b/firmware/QMK/keymaps/default/keymap.c
new file mode 100644
index 0000000..2ec7fc6
--- /dev/null
+++ b/firmware/QMK/keymaps/default/keymap.c
@@ -0,0 +1,21 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /*
+ * ┌───┬───┬───┬───┬───┐
+ * │|<|│ <<│|> │>> │|>|│
+ * └───┴───┴───┴───┴───┘
+ */
+ [0] = LAYOUT(
+ KC_MPRV, KC_BRID, KC_MPLY, KC_BRIU, KC_MNXT
+ )
+};
+
+const uint16_t PROGMEM encoder_map[][1][2] = {
+ [0] = {
+ ENCODER_CCW_CW(KC_VOLU, KC_VOLD),
+ },
+};
diff --git a/firmware/QMK/readme.md b/firmware/QMK/readme.md
new file mode 100644
index 0000000..3d55daf
--- /dev/null
+++ b/firmware/QMK/readme.md
@@ -0,0 +1,27 @@
+# mediapad
+
+![mediapad](imgur.com image replace me!)
+
+*A short description of the keyboard/project*
+
+* Keyboard Maintainer: [Hashim](https://github.com/not_a_robot)
+* Hardware Supported: *The PCBs, controllers supported*
+* Hardware Availability: *Links to where you can find this hardware*
+
+Make example for this keyboard (after setting up your build environment):
+
+ make mediapad:default
+
+Flashing example for this keyboard:
+
+ make mediapad:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/firmware/QMK/rules.mk b/firmware/QMK/rules.mk
new file mode 100644
index 0000000..d8ad025
--- /dev/null
+++ b/firmware/QMK/rules.mk
@@ -0,0 +1,6 @@
+LTO_ENABLE = yes
+ENCODER_ENABLE = yes
+ENCODER_MAP_ENABLE = yes
+OLED_ENABLE = yes
+OLED_TRANSPORT = i2c
+OLED_DRIVER = ssd1306