-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It turns out the set of effect IDs were also different. Implementation only seemed to work superficially because some effect IDs were the same or similar ebough. This adds another effect enum with IDs corresponding to the actual supported effects.
- Loading branch information
Showing
12 changed files
with
116 additions
and
83 deletions.
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
17 changes: 17 additions & 0 deletions
17
src/Exo/Core/Exo.Core/Lighting/Effects/ColorBlinkEffect.cs
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,17 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Exo.ColorFormats; | ||
|
||
namespace Exo.Lighting.Effects; | ||
|
||
/// <summary>Represents a light with a blinking color effect.</summary> | ||
/// <remarks>This is similar to the flash effect, except that the on and off states have the same period.</remarks> | ||
[TypeId(0x46BE7D40, 0x8A97, 0x486C, 0x97, 0xCD, 0x07, 0xE9, 0x31, 0xF4, 0x6A, 0xB9)] | ||
public readonly struct ColorBlinkEffect : ISingleColorLightEffect | ||
{ | ||
[DataMember(Order = 1)] | ||
[Display(Name = "Color")] | ||
public RgbColor Color { get; } | ||
|
||
public ColorBlinkEffect(RgbColor color) => Color = color; | ||
} |
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
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
10 changes: 10 additions & 0 deletions
10
src/Exo/Devices/Exo.Devices.Razer/RazerLightingEffectV0.cs
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,10 @@ | ||
namespace Exo.Devices.Razer; | ||
|
||
public enum RazerLightingEffectV0 : byte | ||
{ | ||
Static = 0, | ||
Blink = 1, | ||
Breathing = 2, | ||
SpectrumCycle = 4, | ||
BreathingExtended = 5, | ||
} |
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
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