-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBoardConfig.h
68 lines (58 loc) · 1.54 KB
/
BoardConfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: Copyright (c) 2021 Jason Skuby (mytechtoybox.com)
*/
#ifndef PICO_FIGHTING_BOARD_CONFIG_H_
#define PICO_FIGHTING_BOARD_CONFIG_H_
#include <GamepadEnums.h>
#include "enums.h"
#include "NeoPico.hpp"
#include "PlayerLEDs.h"
#define PIN_DPAD_LEFT 0
#define PIN_DPAD_UP 1
#define PIN_DPAD_DOWN 2
#define PIN_DPAD_RIGHT 3
#define PIN_BUTTON_A1 4
#define PIN_BUTTON_S1 5
#define PIN_BUTTON_S2 6
#define PIN_BUTTON_B3 7
#define PIN_BUTTON_B4 8
#define PIN_BUTTON_R1 9
#define PIN_BUTTON_L1 10
#define PIN_BUTTON_B1 11
#define PIN_BUTTON_B2 12
#define PIN_BUTTON_R2 13
#define PIN_BUTTON_L2 14
#define PIN_BUTTON_A2 20
#define PIN_BUTTON_L3 21
#define PIN_BUTTON_R3 22
#define DEFAULT_SOCD_MODE SOCD_MODE_NEUTRAL
#define BUTTON_LAYOUT BUTTON_LAYOUT_HITBOX
#define BOARD_LEDS_PIN 15
#define LED_BRIGHTNESS_MAXIMUM 150
#define LED_BRIGHTNESS_STEPS 5
#define LED_FORMAT LED_FORMAT_GRB
#define LEDS_PER_PIXEL 2
#define LEDS_DPAD_LEFT 11
#define LEDS_DPAD_DOWN 10
#define LEDS_DPAD_RIGHT 9
#define LEDS_DPAD_UP 0
#define LEDS_BUTTON_B3 8
#define LEDS_BUTTON_B4 7
#define LEDS_BUTTON_R1 6
#define LEDS_BUTTON_L1 5
#define LEDS_BUTTON_B1 1
#define LEDS_BUTTON_B2 2
#define LEDS_BUTTON_R2 3
#define LEDS_BUTTON_L2 4
#define PLED_TYPE PLED_TYPE_PWM
#define PLED1_PIN 16
#define PLED2_PIN 17
#define PLED3_PIN 18
#define PLED4_PIN 19
#define HAS_I2C_DISPLAY 1
#define I2C_SDA_PIN 26
#define I2C_SCL_PIN 27
#define I2C_BLOCK i2c1
#define I2C_SPEED 400000
#endif