GithubHelp home page GithubHelp logo

Comments (9)

forkineye avatar forkineye commented on May 26, 2024

It should be fairly easy to do. I have another project in the planning stages that will require software PWM, just no time to work on it yet.

from espixelstick.

starwolf73 avatar starwolf73 commented on May 26, 2024

Great! Thanks. Looking forward to test it.

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

I have some hardware arriving soon which could really use this feature.

Did you get anywhere ? If not I'll probably do it in the next couple of weeks.

I'll add a gpio/PWM tab to the GUI with 3 columns:
Gpio, enabled, dmx channel
12 [x] 1
4 [x] 2

from espixelstick.

forkineye avatar forkineye commented on May 26, 2024

@penfold42 I hadn't done anything with this yet. If you decide to work on it, I'd like to keep it as a different compile time "Mode", like Pixel and Serial as the hardware most people use this on (ESPixelStick) wouldn't allow for mixed capability due to lack of available pins (ESP-01).

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

Will do - I just got the basics working 5 mins ago.

Ideally I'd like to keep it as separated as possible but the globals being in the same .h with all the structure makes it trickier - a subtle hint to peek at my other PR !

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

https://github.com/penfold42/ESPixelStick/tree/pwm?files=1

It's basically done - the GUI layout looks crap at the moment but it works.

I've only tested gpio4 with a mosfet driving a 5w 12v dimmable led halogen replacement bulb.

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

I've fixed the layout and confirmed support for most of the gpios.

I just need to hide the HTML config if support isn't compiled in.

Do you mind if I change device mode to be a bitfield? Pwm can coexist with both serial and pixel modes and this is a quick way to support it.
Bit 0 pixel, bit 1 serial, bit 2 pwm
Would yield:
0 invalid
1 pixel
2 serial
3 invalid
4 invalid
5 pixel + pwm
6 serial + pwm

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

All done! (I hope)
#66

from espixelstick.

penfold42 avatar penfold42 commented on May 26, 2024

And now removed from this repo as of today.

I’ll be maintaining this support in my repo along with other features:
https://github.com/penfold42/ESPixelBoard/tree/ESPixelBoard?files=1

from espixelstick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.