Skip to content

Commit

Permalink
Turbo LED on RGB Stack - Bounty #4 (#1240)
Browse files Browse the repository at this point in the history
* Bounty #4 - Add Turbo LED to RGB Stack

* Set the Turbo LED to RGB from the Add-On Configs Menu, and set the index value same as player LEDs

* Can be configured in the BoardConfig.h (will be for OpenCore0)
  • Loading branch information
arntsonl authored Dec 24, 2024
1 parent e2d765a commit fcca934
Show file tree
Hide file tree
Showing 14 changed files with 743 additions and 562 deletions.
1 change: 1 addition & 0 deletions headers/addons/neopicoleds.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class NeoPicoLEDAddon : public GPAddon {
AnimationStation as;
std::map<std::string, int> buttonPositions;
bool turnOffWhenSuspended;
PLEDType ledType;
};

#endif
12 changes: 12 additions & 0 deletions headers/addons/turbo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
#define TURBO_LED_PIN -1
#endif

#ifndef TURBO_LED_INDEX
#define TURBO_LED_INDEX -1
#endif

#ifndef TURBO_LED_TYPE
#define TURBO_LED_TYPE PLED_TYPE_NONE
#endif

#ifndef TURBO_LED_COLOR
#define TURBO_LED_COLOR ColorRed
#endif

// TURBO SHMUP MODE
#ifndef TURBO_SHMUP_MODE
#define TURBO_SHMUP_MODE 0
Expand Down
9 changes: 9 additions & 0 deletions headers/gamepad/GamepadAuxState.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ struct GamepadAuxHapticChannel
uint16_t intensity = 0;
};

struct GamepadAuxTurbo
{
bool enabled = false;
bool active = false;
uint8_t activity = 0;
};

struct GamepadAuxSensors
{
GamepadAux3DRelativeSensor mouse;
Expand Down Expand Up @@ -142,4 +149,6 @@ struct GamepadAuxState
GamepadAuxSensors sensors;

GamepadAuxHaptics haptics;

GamepadAuxTurbo turbo;
};
4 changes: 4 additions & 0 deletions proto/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ message TurboOptions
optional uint32 shmupBtnMask3 = 17;
optional uint32 shmupBtnMask4 = 18;
optional ShmupMixMode shmupMixMode = 19;

optional PLEDType turboLedType = 20;
optional int32 turboLedIndex = 21;
optional uint32 turboLedColor = 22;
}

message SliderOptions
Expand Down
Loading

0 comments on commit fcca934

Please sign in to comment.