summaryrefslogtreecommitdiff
path: root/keyboards/pica40/rev2/rev2.h
blob: 473011fbb030f465d2755048812e68a2a8e1ca4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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