summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/evb_wb32f3g71/config.h
blob: 5f6f04f7b4139ead8ab3719e2c9c583a6a02b7cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2022 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define ADC_PIN A0

#define APA102_NOPS (100 / (1000000000L / (CPU_CLOCK / 4)))

#define SOLENOID_PIN B12
#define SOLENOID_PINS { B12, B13, B14, B15 }
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }

#define I2C1_SDA_PIN B7
#define I2C1_SCL_PIN B6
#define I2C1_SCL_PAL_MODE 4
#define I2C1_OPMODE OPMODE_I2C
#define I2C1_CLOCK_SPEED 100000