Méthode | Description | |
---|---|---|
CalculateLength ( int on, int off ) : int |
Calculates PWM length from on (rising) and off (falling) delay/tick values.
|
|
CalculateMilliseconds ( float frequency, int length ) : float |
Calculates PWM milliseconds from a length and frequency.
|
|
Equals ( object obj ) : bool |
Compares this object with another by value.
|
|
FromByteArray ( byte data, int offset ) : |
Converts a byte array into a value of this type.
|
|
FromLength ( int length, int delay ) : |
Creates a value calculated from length and optional delay. Automatically converts zero length to "always off" and maximum length to "always on". |
|
FromMilliseconds ( float length, float frequency, float delay ) : |
Creates a value calculated from length (given a frequency) and optional delay.
|
|
GetHashCode ( ) : int |
Returns a hashcode based on the current value of this object.
|
|
NxpPca9685ChannelValue ( byte data, int offset ) : System |
Creates an instance with the values from a byte array.
|
|
NxpPca9685ChannelValue ( int on, int off ) : System |
Creates an instance with the specified values
|
|
SetBytes ( byte data, int offset ) : void |
Sets the value from a byte array.
|
|
ToByteArray ( ) : byte[] |
Converts all values to a byte array which can be written to the channel.
|
|
operator ( ) : bool |
Tests two objects of this type for inequality by value.
|
Méthode | Description | |
---|---|---|
DoChanged ( ) : void |
Fires the Changed event.
|
public static CalculateLength ( int on, int off ) : int | ||
on | int | |
off | int | |
Résultat | int |
public static CalculateMilliseconds ( float frequency, int length ) : float | ||
frequency | float | Frequency in Hz. |
length | int | Length in clock ticks. |
Résultat | float |
public static FromByteArray ( byte data, int offset ) : |
||
data | byte | |
offset | int | |
Résultat |
public static FromLength ( int length, int delay ) : |
||
length | int | Pulse length in clock ticks, between 0 and |
delay | int | Optional delay in clock ticks, beteween 0 and |
Résultat |
public static FromMilliseconds ( float length, float frequency, float delay ) : |
||
length | float | /// Pulse length in milliseconds. Cannot be greater than one clock interval (1000 / frequency). /// |
frequency | float | Clock frequency of the |
delay | float | Optional delay in milliseconds. Cannot be greater than one clock interval (1000 / frequency). |
Résultat |
public NxpPca9685ChannelValue ( byte data, int offset ) : System | ||
data | byte | |
offset | int | |
Résultat | System |
public NxpPca9685ChannelValue ( int on, int off ) : System | ||
on | int | |
off | int | |
Résultat | System |
public SetBytes ( byte data, int offset ) : void | ||
data | byte | Data buffer to read from. |
offset | int | Optional offset to read from. |
Résultat | void |