public abstract class AbstractPwm extends AbstractPinFeature implements Pwm
| Constructor and Description |
|---|
AbstractPwm(Pin pin) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
protected abstract void |
disableImpl() |
void |
enable() |
protected abstract void |
enableImpl() |
double |
getDuty() |
double |
getFrequency() |
String |
getName() |
boolean |
isEnabled() |
void |
setDuty(double duty) |
void |
setFrequency(double frequency) |
protected abstract void |
setPwmImpl(double frequency,
double duty) |
activate, blockPin, getPin, isActivatedFeature, isBlocking, isSetup, isTorndownOnShutdown, setTeardownOnShutdown, setup, setupImpl, teardown, teardownImpl, toString, unblockPinclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, blockPin, getPin, isActivatedFeature, isBlocking, isSetup, isTorndownOnShutdown, setTeardownOnShutdown, setup, teardown, unblockPinpublic AbstractPwm(Pin pin)
public String getName()
getName in interface PinFeaturepublic void setFrequency(double frequency)
setFrequency in interface Pwmpublic double getFrequency()
getFrequency in interface Pwmprotected abstract void setPwmImpl(double frequency,
double duty)
protected abstract void enableImpl()
protected abstract void disableImpl()
Copyright © 2015 silverspoon.io. All rights reserved.