Giter Site home page Giter Site logo

Comments (8)

nightfox0909 avatar nightfox0909 commented on June 12, 2024

Id love to take this up if no one is working on it already.

from simplegpio.

SteveDesmond-ca avatar SteveDesmond-ca commented on June 12, 2024

💯 go for it!

from simplegpio.

brunocabral88 avatar brunocabral88 commented on June 12, 2024

Is this issue still pending implementation? I'd like to work on it if so.

from simplegpio.

SteveDesmond-ca avatar SteveDesmond-ca commented on June 12, 2024

Feel free to give it a shot!

from simplegpio.

brunocabral88 avatar brunocabral88 commented on June 12, 2024

@SteveDesmond-ca, I believe we will indeed have to implement PWM as in issue #7 before we can close this one, since there is no way to set the voltage to values other than 0 or 1. Please correct me if I'm wrong, but the PWM implementation would go in the IPinInterface and its implementations, right?

from simplegpio.

SteveDesmond-ca avatar SteveDesmond-ca commented on June 12, 2024

Yeah, I think we need a PWMManager or something like that on each pin, to handle the toggle timing, and the pin can then have a Strength (better name?) getter/setter that calls into PWM.

My guess is that sysfs will be too slow, so you'll need to use the experimental flag on the Factory to enable System.Devices.Gpio (and therefore the memory mappings) as the backend.

from simplegpio.

SteveDesmond-ca avatar SteveDesmond-ca commented on June 12, 2024

PWM has been implemented as of v2.0.0-beta.2 this afternoon, and I'm planning on adding some helpers/extensions for this over the next week.

from simplegpio.

SteveDesmond-ca avatar SteveDesmond-ca commented on June 12, 2024

As of v2.0.0-beta.3 this afternoon, a new method RGBLED.SetColor() can take any System.Drawing.Color and adjust software PWM accordingly for each of the RGB pins.

Docs will be updated for v2 final.

from simplegpio.

Related Issues (14)

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.