public SetFrameInstruction() { Leds = new LedState(); Color = new RgbColor(); }
/* typedef struct { uint8_t StaticRed; uint8_t StaticGreen; uint8_t StaticBlue; uint16_t TempDeviceId; uint16_t MaxInstructions; uint8_t ReservedA; } Storage_SettingsResponse; * */ public DeviceConfiguration() { OfflineColor = new RgbColor(); }
public LiveFrame() { Leds = new LedState(); Color = new RgbColor(); }
public void SetDeviceConfiguration(RgbColor staticColor) { if (_device == null) return; var report = new SetFeatureReport {Command = SetFeatureCommands.SetStaticColor}; staticColor.GetBytes().CopyTo(report.CommandData, 0); _device.WriteFeatureData(report.GetReportData()); }