This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason Skuby
committed
Oct 7, 2021
1 parent
af3f174
commit 32b5429
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 <vector> | ||
#include <GamepadEnums.h> | ||
#include <GamepadState.h> | ||
#include "Pixel.hpp" | ||
|
||
#define PIN_DPAD_UP 1 | ||
#define PIN_DPAD_DOWN 2 | ||
#define PIN_DPAD_LEFT 0 | ||
#define PIN_DPAD_RIGHT 3 | ||
#define PIN_BUTTON_B1 11 | ||
#define PIN_BUTTON_B2 12 | ||
#define PIN_BUTTON_B3 7 | ||
#define PIN_BUTTON_B4 8 | ||
#define PIN_BUTTON_L1 10 | ||
#define PIN_BUTTON_R1 9 | ||
#define PIN_BUTTON_L2 14 | ||
#define PIN_BUTTON_R2 13 | ||
#define PIN_BUTTON_S1 5 | ||
#define PIN_BUTTON_S2 6 | ||
#define PIN_BUTTON_L3 21 | ||
#define PIN_BUTTON_R3 22 | ||
#define PIN_BUTTON_A1 4 | ||
#define PIN_BUTTON_A2 20 | ||
|
||
#define DEFAULT_SOCD_MODE SOCD_MODE_NEUTRAL | ||
|
||
#define BOARD_LEDS_PIN 15 | ||
#define LED_BRIGHTNESS_MAXIMUM 200 | ||
#define LED_BRIGHTNESS_STEPS 5 | ||
|
||
#define LEDS_DPAD_LEFT 0 | ||
#define LEDS_DPAD_DOWN 1 | ||
#define LEDS_DPAD_RIGHT 2 | ||
#define LEDS_DPAD_UP 3 | ||
#define LEDS_BUTTON_03 4 | ||
#define LEDS_BUTTON_04 5 | ||
#define LEDS_BUTTON_06 6 | ||
#define LEDS_BUTTON_05 7 | ||
#define LEDS_BUTTON_01 8 | ||
#define LEDS_BUTTON_02 9 | ||
#define LEDS_BUTTON_07 11 | ||
#define LEDS_BUTTON_08 10 | ||
|
||
const static std::vector<Pixel> pixels = | ||
{ | ||
{ .index = LEDS_DPAD_LEFT, .mask = GAMEPAD_MASK_DL, .positions = { 22, 23 } }, | ||
{ .index = LEDS_DPAD_DOWN, .mask = GAMEPAD_MASK_DD, .positions = { 20, 21 } }, | ||
{ .index = LEDS_DPAD_RIGHT, .mask = GAMEPAD_MASK_DR, .positions = { 18, 19 } }, | ||
{ .index = LEDS_DPAD_UP, .mask = GAMEPAD_MASK_DU, .positions = { 0, 1 } }, | ||
{ .index = LEDS_BUTTON_03, .mask = GAMEPAD_MASK_B3, .positions = { 16, 17 } }, | ||
{ .index = LEDS_BUTTON_04, .mask = GAMEPAD_MASK_B4, .positions = { 14, 15 } }, | ||
{ .index = LEDS_BUTTON_06, .mask = GAMEPAD_MASK_R1, .positions = { 12, 13 } }, | ||
{ .index = LEDS_BUTTON_05, .mask = GAMEPAD_MASK_L1, .positions = { 10, 11 } }, | ||
{ .index = LEDS_BUTTON_01, .mask = GAMEPAD_MASK_B1, .positions = { 2, 3 } }, | ||
{ .index = LEDS_BUTTON_02, .mask = GAMEPAD_MASK_B2, .positions = { 4, 5 } }, | ||
{ .index = LEDS_BUTTON_08, .mask = GAMEPAD_MASK_R2, .positions = { 6, 7 } }, | ||
{ .index = LEDS_BUTTON_07, .mask = GAMEPAD_MASK_L2, .positions = { 8, 9 } }, | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters