summaryrefslogtreecommitdiff
path: root/keyboards/pica40/rev2/rev2.h
diff options
context:
space:
mode:
authorEvgenii Vilkov <zzeneg@gmail.com>2022-12-30 01:53:31 +0100
committerGitHub <noreply@github.com>2022-12-30 11:53:31 +1100
commitced8142847e7c6a1e0e260017131e34e3da1b0ff (patch)
tree35f65396f0119a39f04d96cdb133671cc07a3f5b /keyboards/pica40/rev2/rev2.h
parenta7ff2b8d54e1b56c5c25f4a7b6c8c5d9dedee2ab (diff)
[Keyboard] Add Pica40 (#19220)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/pica40/rev2/rev2.h')
-rw-r--r--keyboards/pica40/rev2/rev2.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/pica40/rev2/rev2.h b/keyboards/pica40/rev2/rev2.h
new file mode 100644
index 0000000000..473011fbb0
--- /dev/null
+++ b/keyboards/pica40/rev2/rev2.h
@@ -0,0 +1,22 @@
+// Copyright 2022 zzeneg (@zzeneg)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "quantum.h"
+#include "gpio.h"
+
+// RGB LED support for XIAO RP2040
+#define PICA40_RGB_POWER_PIN GP11
+
+// enable custom encoder functionality for Pica40
+#ifdef ENCODER_ENABLE
+# include "encoder.h"
+# include "transactions.h"
+# ifndef ENCODER_MAP_KEY_DELAY
+# define ENCODER_MAP_KEY_DELAY 2
+# endif
+# ifndef ENCODER_RESOLUTION
+# define ENCODER_RESOLUTION 4
+# endif
+#endif