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

Should LED extend PWMOutputDevice instead of DigitalOutputDevice? #58

Closed
bennuttall opened this issue Oct 11, 2015 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@bennuttall
Copy link
Member

Making LED a PWM device by default would enable a brightness setting (if we aliased .value as .brightness):

>>> led = LED(2)
>>> led.on()
>>> led.off()
>>> led.brightness = 0.5

Any reason not to? The alternative is leave it as it is, and people can manually create the led as a PWMOutputDevice object.

We would need to ensure #57 is fixed first.

@bennuttall bennuttall added this to the v0.8.0 Beta 3 milestone Oct 11, 2015
@bennuttall
Copy link
Member Author

#57 is fixed

@bennuttall bennuttall modified the milestones: v1.0, v0.8.0 Beta 3 Oct 17, 2015
@bennuttall
Copy link
Member Author

@waveform80 what's the decision?

LED extends PWMOutputDevice or LED stays and we introduce PWMLED?

I think we said the latter.

@waveform80
Copy link
Member

Latter sounds good to me - I'm actually fine either way, but I have a tiny preference for having something brutally simple for LED (I'm just a nervous about RPi.GPIO's PWM implementation)

@bennuttall
Copy link
Member Author

Ok sure - I'll throw it in now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants