]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/jj4x4/jj4x4.h
[Keyboard] Refactor jj4x4 to current standards (#5567)
[qmk_firmware.git] / keyboards / jj4x4 / jj4x4.h
index 03cf5d8a62caf119c7f8970b8fbbf331a4ce87ef..7b8cb81835efc6af1c6b23c2b74c0f43e5b086f7 100644 (file)
@@ -15,20 +15,19 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef KEYMAP_COMMON_H
-#define KEYMAP_COMMON_H
+#pragma once
 
 #include "quantum.h"
-#include "quantum_keycodes.h"
-#include "keycode.h"
-#include "action.h"
 
-void matrix_init_user(void);  // TODO port this to other PS2AVRGB boards
-
-#define XXX KC_NO
-
-       
-#define LAYOUT( \
+/* This a shortcut to help you visually see your layout.
+ *
+ * The first section contains all of the arguments representing the physical
+ * layout of the board and position of the keys.
+ *
+ * The second converts the arguments into a two-dimensional array which
+ * represents the switch matrix.
+ */
+#define LAYOUT_ortho_4x4( \
        K01, K02, K03, K04, \
        K11, K12, K13, K14, \
        K21, K22, K23, K24, \
@@ -40,7 +39,3 @@ void matrix_init_user(void);  // TODO port this to other PS2AVRGB boards
   { K21, K22, K23, K24 }, \
   { K31, K32, K33, K34 } \
 }      
-
-
-
-#endif