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

Add P9813 support #10104

Closed
wants to merge 2 commits into from
Closed

Add P9813 support #10104

wants to merge 2 commits into from

Conversation

mm-mbs
Copy link

@mm-mbs mm-mbs commented Dec 10, 2020

Description:

I have added support for P9813 RGB LED controller based on NeoPixelBus.

For use P9813 support you must define the following variables:

#define USE_WS2812
#define USE_WS2812_HARDWARE  NEO_HW_P9813
#define USE_WS2812_CTYPE     NEO_RGB 

Then 2 pins must be configured to P9813 Clock and P9813 Data.

Related issue (if applicable): fixes #8457

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works on Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works on Tasmota core ESP32 V.1.0.4.2
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@arendst arendst self-assigned this Dec 17, 2020
@arendst
Copy link
Owner

arendst commented Dec 17, 2020

Needs some tweaking. Working on it.

arendst added a commit that referenced this pull request Dec 17, 2020
Add support for P9813 RGB Led MOSFET controller (#10104)
@arendst
Copy link
Owner

arendst commented Dec 17, 2020

Implemented just now. Thx.

@arendst arendst closed this Dec 17, 2020
@rkkoszewski
Copy link

Yes!! This is amazing!! Thank you both @mm-mbs and @arendst for adding support for the P9813 to Tasmota!!

@Jaskoxxxx
Copy link

Hello,

Thx for this Support for P9813!

But i cant get it to work. Can someone Please post step to step what and how to define.

In GPIO configurator i am not geting an option to setup P9813 Dat and P9813 Clk.

Thx in advance...

@rkkoszewski
Copy link

@Jaskoxxxx The support for P9813 is not included by default in the Tasmota build. You need to compile your own Tasmota build.
I've done it with TasmoCompiler (https://github.com/benzino77/tasmocompiler). You can read on how to set it up and compile it in that repository.

And as far as I remember all I had to do is to eider check the "WS2812 Leds" checkbox, or in "Custom parameters" add:

#define USE_WS2812
#define USE_WS2812_HARDWARE  NEO_HW_P9813
#define USE_WS2812_CTYPE     NEO_RGB 

Not sure which was the good one. But compile it and you're ready to go.

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.

Support for P9813 LED Controllers
4 participants