Browse Source

Migrate SPLIT_OLED_ENABLE (#26194)

Joel Challis 3 months ago
parent
commit
a498daf627

+ 0 - 22
keyboards/splitkb/aurora/corne/rev1/config.h

@@ -1,22 +0,0 @@
-/* Copyright 2022 splitkb.com <support@splitkb.com>
- *
- * 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/>.
- */
-
-#pragma once
-
-// Not yet available in `info.json`
-#ifdef OLED_ENABLE
-#    define SPLIT_OLED_ENABLE
-#endif

+ 2 - 1
keyboards/splitkb/aurora/corne/rev1/keyboard.json

@@ -103,7 +103,8 @@
         },
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },

+ 0 - 19
keyboards/splitkb/aurora/helix/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2023 splitkb.com <support@splitkb.com>
- *
- * 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/>.
- */
-
-#pragma once
-
-#define SPLIT_OLED_ENABLE

+ 5 - 0
keyboards/splitkb/aurora/helix/rev1/keyboard.json

@@ -129,6 +129,11 @@
         },
         "serial": {
             "pin": "D2"
+        },
+        "transport": {
+            "sync": {
+                "oled": true
+            }
         }
     },
     "usb": {

+ 0 - 22
keyboards/splitkb/aurora/lily58/rev1/config.h

@@ -1,22 +0,0 @@
-/* Copyright 2022 splitkb.com <support@splitkb.com>
- *
- * 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/>.
- */
-
-#pragma once
-
-// Not yet available in `info.json`
-#ifdef OLED_ENABLE
-#    define SPLIT_OLED_ENABLE
-#endif

+ 2 - 1
keyboards/splitkb/aurora/lily58/rev1/keyboard.json

@@ -114,7 +114,8 @@
         },
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },

+ 0 - 19
keyboards/splitkb/aurora/sofle_v2/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2023 splitkb.com <support@splitkb.com>
- *
- * 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/>.
- */
-
-#pragma once
-
-#define SPLIT_OLED_ENABLE

+ 5 - 0
keyboards/splitkb/aurora/sofle_v2/rev1/keyboard.json

@@ -123,6 +123,11 @@
         },
         "serial": {
             "pin": "D2"
+        },
+        "transport": {
+            "sync": {
+                "oled": true
+            }
         }
     },
     "usb": {

+ 0 - 22
keyboards/splitkb/aurora/sweep/rev1/config.h

@@ -1,22 +0,0 @@
-/* Copyright 2022 splitkb.com <support@splitkb.com>
- *
- * 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/>.
- */
-
-#pragma once
-
-// Not yet available in `info.json`
-#ifdef OLED_ENABLE
-#    define SPLIT_OLED_ENABLE
-#endif

+ 2 - 1
keyboards/splitkb/aurora/sweep/rev1/keyboard.json

@@ -100,7 +100,8 @@
         },
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },

+ 0 - 2
keyboards/splitkb/elora/rev1/config.h

@@ -55,6 +55,4 @@
 // including some code in rev1.c but makes 
 // it so the timeout's are not synced
 // between halves.
-#undef SPLIT_OLED_ENABLE
 #define OLED_TIMEOUT 0
-

+ 2 - 1
keyboards/splitkb/elora/rev1/keyboard.json

@@ -91,7 +91,8 @@
         },
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             },
             "watchdog": true,
             "watchdog_timeout": 3000

+ 0 - 1
keyboards/splitkb/kyria/rev1/config.h

@@ -18,4 +18,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 
 #define OLED_DISPLAY_128X64
-#define SPLIT_OLED_ENABLE

+ 2 - 1
keyboards/splitkb/kyria/rev1/info.json

@@ -48,7 +48,8 @@
     "split": {
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },

+ 0 - 1
keyboards/splitkb/kyria/rev2/config.h

@@ -22,4 +22,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MATRIX_MASKED // actual mask is defined by `matrix_mask` in `rev2.c`
 
 #define OLED_DISPLAY_128X64
-#define SPLIT_OLED_ENABLE

+ 2 - 1
keyboards/splitkb/kyria/rev2/info.json

@@ -48,7 +48,8 @@
     "split": {
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },

+ 0 - 1
keyboards/splitkb/kyria/rev3/config.h

@@ -17,4 +17,3 @@
 #pragma once
 
 #define OLED_DISPLAY_128X64
-#define SPLIT_OLED_ENABLE

+ 2 - 1
keyboards/splitkb/kyria/rev3/keyboard.json

@@ -116,7 +116,8 @@
         },
         "transport": {
             "sync": {
-                "matrix_state": true
+                "matrix_state": true,
+                "oled": true
             }
         }
     },