Comments (8)
Id love to take this up if no one is working on it already.
from simplegpio.
from simplegpio.
Is this issue still pending implementation? I'd like to work on it if so.
from simplegpio.
Feel free to give it a shot!
from simplegpio.
@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.
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.
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.
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)
- Windows support HOT 2
- Add advanced bus components
- Add GPIO components HOT 1
- Support more complex hardware wanted? (e.g. MFRC522 RFID Reader) HOT 5
- Add new boards HOT 1
- Fix input caching
- Does it support arm? HOT 1
- Can I adapt to BananaPi? HOT 1
- Add reactivity
- Add SPI/I2C/UART compatibility HOT 4
- Pulse Width Modulation HOT 4
- Use new /dev/gpiomem interface HOT 3
- Add register-backed components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplegpio.