/* Copyright 2024 byungyoonc
 *
 * 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 3 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 MATRIX_ROWS 4
#define MATRIX_COLS 12

#define MATRIX_ROW_PINS \
    { GP26, GP27, GP28, GP29 }

#define ROWS_PER_COL \
    { 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3 }

#define AMUX_MAX_COLS_COUNT 12

#define AMUX_SEL_PINS \
    { GP4, GP5, GP6, GP7, GP8, GP9 }
#define AMUX_COL_CHANNELS \
    { 0, 1, 2, 3, 4, 5, 56, 57, 58, 59, 60, 61 }

#define DEFAULT_ACTUATION_MODE 0
#define DEFAULT_MODE_0_ACTUATION_LEVEL 350
#define DEFAULT_MODE_0_RELEASE_LEVEL 400
#define DEFAULT_MODE_1_INITIAL_DEADZONE_OFFSET DEFAULT_MODE_0_ACTUATION_LEVEL
#define DEFAULT_MODE_1_ACTUATION_OFFSET 70
#define DEFAULT_MODE_1_RELEASE_OFFSET 70
#define DEFAULT_EXTREMUM 1023
#define NOISE_CEILING_THRESHOLD 50
#define BOTTOMING_CALIBRATION_THRESHOLD 50
#define DEFAULT_NOISE_CEILING_SAMPLING_COUNT 30
#define DEFAULT_BOTTOMING_READING 0
#define DEFAULT_CALIBRATION_STARTER true

#define EECONFIG_KB_DATA_SIZE 105

#define DEBUG_MATRIX_SCAN_RATE

#define QUANTUM_PAINTER_DISPLAY_TIMEOUT 0

#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
