コード例 #1
0
 public SetFrameInstruction()
 {
     Leds = new LedState();
     Color = new RgbColor();
 }
コード例 #2
0
 /*	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();
 }
コード例 #3
0
 public LiveFrame()
 {
     Leds = new LedState();
     Color = new RgbColor();
 }
コード例 #4
0
        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());
        }