Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hsb features #2211

Closed

Conversation

aidanmountford
Copy link

This completes the channel handling in v5.12h by:

  • Returning the channel information in the status
  • Returning the channel information (in status and result) as an integer rather than a string.

1)  HSB Color - Allows RGB Color to be set using HSB where
      H is 0-259
      S is 0-100
      B is 0-100
   *  new command 'HSBColor' with parameters H,S,B where:
         *  H = Hue:         0 < H < 360
         *  S = Saturation:  0 < S < 100
         *  B = Brightness:  0 < B < 100

   *  Altered status report for xdrv_01_light.ino to include info
      relating to HSBColor in the format H,S,B.

   *  When SetOption15 = 0 and direct PWM driving is configured
      the status now returns PWM state for each PWM channel.

   *  Added feature to Light object that allows a CHANNEL command
      this command allows direct setting of each color/light
      channel.   Syntax is CHANNEL[X]  [Y]   where X is the color
      channel (Red is 1, Green is 2, Blue is 3 etc) and Y is the
      amplitude to set the channel to (0-100).
…/STATE when SetOption15 = 1 (ie: it is configured as a light)
…ays an integer.)

Tidy up merge with upstream/development
arendst added a commit that referenced this pull request Mar 21, 2018
5.12.0h
 * Add Channel status information (#2211)
@arendst
Copy link
Owner

arendst commented Mar 21, 2018

Did it differently using a channel array shortening the string considerably ;-)

Thnx for updates.

@arendst arendst closed this Mar 21, 2018
@aidanmountford
Copy link
Author

No worries.

I am sure I will cook up some more as time progresses :)

Sorry it took two shots to get it right (no idea why I didnt put the status in there in the first place)

A

curzon01 pushed a commit to curzon01/Tasmota that referenced this pull request Sep 6, 2018
5.12.0h
 * Add Channel status information (arendst#2211)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants