|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.io.PWM
jcontrol.io.PWMext
public class PWMext
Provides furter functions for Pulse Width Modulation of JControl.
| Method Summary | |
|---|---|
static void |
setFrequency(byte channel,
int freq)
Sets the frequency of the PWM signal (in Hz), of the given channel. |
static int |
setPeriod(byte channel,
int period)
Sets the period of the PWM signal (in microseconds) of the given channel. |
static int |
setPeriod(int period)
Sets the period of the PWM signal (in microseconds). |
| Methods inherited from class jcontrol.io.PWM |
|---|
getDuty, getFrequency, setActive, setCycles, setDuty, setFrequency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, notifyAll, wait |
| Method Detail |
|---|
public static void setFrequency(byte channel,
int freq)
channel - to use (valid range: 0...3, hardware dependent)freq - the frequency to use (range 244 ... 32767 - hardware dependent)PWM#setCycles(byte scale, short load),
#setPeriod(short value)
public static int setPeriod(byte channel,
int period)
channel - to use (valid range: 0...3, hardware dependent)period - to use (range 1 ... 32767)PWM#setCycles(byte scale, short load),
PWM#setFrequency(short freq)public static int setPeriod(int period)
period - to use (range 1 ... 32767)PWM#setCycles(byte scale, short load),
PWM#setFrequency(short freq)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||