diff --git a/doc/PulseView setup for RGB tests.pvs b/doc/PulseView setup for RGB tests.pvs new file mode 100644 index 0000000..c6eb64e --- /dev/null +++ b/doc/PulseView setup for RGB tests.pvs @@ -0,0 +1,134 @@ +[D0] +name=D0 +enabled=true +color=4279638298 +conversion_type=0 +conv_options=0 + +[D1] +name=D1 +enabled=true +color=4287582722 +conversion_type=0 +conv_options=0 + +[D2] +name=D2 +enabled=true +color=4291559424 +conversion_type=0 +conv_options=0 + +[D3] +name=D3 +enabled=true +color=4294277376 +conversion_type=0 +conv_options=0 + +[D4] +name=D4 +enabled=true +color=4293776384 +conversion_type=0 +conv_options=0 + +[D5] +name=D5 +enabled=true +color=4285780502 +conversion_type=0 +conv_options=0 + +[D6] +name=D6 +enabled=true +color=4281623972 +conversion_type=0 +conv_options=0 + +[D7] +name=D7 +enabled=true +color=4285878395 +conversion_type=0 +conv_options=0 + +[decode_signal0] +name=PWM +enabled=true +color=4293863721 +conversion_type=0 +conv_options=0 +decoders=1 +decoder0\id=pwm +decoder0\visible=true +decoder0\options=0 +decoder0\row0\visible=true +decoder0\row1\visible=true +decoder0\ann_class0\visible=true +decoder0\ann_class1\visible=true +channels=1 +channel0\name=Data +channel0\initial_pin_state=2 +channel0\assigned_signal_name=D0 + +[decode_signal1] +name=PWM +enabled=true +color=4283341318 +conversion_type=0 +conv_options=0 +decoders=1 +decoder0\id=pwm +decoder0\visible=true +decoder0\options=0 +decoder0\row0\visible=true +decoder0\row1\visible=true +decoder0\ann_class0\visible=true +decoder0\ann_class1\visible=true +channels=1 +channel0\name=Data +channel0\initial_pin_state=2 +channel0\assigned_signal_name=D1 + +[decode_signal2] +name=PWM +enabled=true +color=4281623972 +conversion_type=0 +conv_options=0 +decoders=1 +decoder0\id=pwm +decoder0\visible=true +decoder0\options=0 +decoder0\row0\visible=true +decoder0\row1\visible=true +decoder0\ann_class0\visible=true +decoder0\ann_class1\visible=true +channels=1 +channel0\name=Data +channel0\initial_pin_state=2 +channel0\assigned_signal_name=D2 + +[General] +decode_signals=3 +generated_signals=0 +views=1 +meta_objs=0 + +[view0] +scale=1.3501836249729964e-6 +v_offset=-290 +splitter_state=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0?\0\0\x6\x18\x1\0\0\0\x1\x1\0\0\0\x1\0) +segment_display_mode=1 +offset=22 serialization::archive 14 0 0 0 0 1350 18362497 29963403 82613844 61065972 55860750 -8 0 0 6 +zero_offset=22 serialization::archive 14 0 0 0 0 0 0 0 0 0 0 0 0 0 6 +D0\trace_height=26 +D1\trace_height=26 +D2\trace_height=26 +D3\trace_height=26 +D4\trace_height=26 +D5\trace_height=26 +D6\trace_height=26 +D7\trace_height=26 diff --git a/doc/Yeelight GPIO measurements.xlsx b/doc/Yeelight GPIO measurements.xlsx index c1bec10..bb3929b 100644 Binary files a/doc/Yeelight GPIO measurements.xlsx and b/doc/Yeelight GPIO measurements.xlsx differ diff --git a/yeelight_bs2.h b/yeelight_bs2.h index b1fa606..40cdd47 100644 --- a/yeelight_bs2.h +++ b/yeelight_bs2.h @@ -110,7 +110,7 @@ namespace esphome FloatOutput *white_; esphome::gpio::GPIOBinaryOutput *master1_; esphome::gpio::GPIOBinaryOutput *master2_; - // Used for a bug hack in turn_on_in_rgb_mode_() + // Used for a bug hack. float previous_state_ = 1; void turn_off_()