API for the CJQ4435 MOSFET.
More...
- ID: cjq4435
- Name: Grove MOSFET
- Other Names: CJQ4435
- Category: electric
- Manufacturer: seeed
- Connection: gpio pwm
- Kit: robok
UPM module for the CJQ4435 MOSFET. It was developed using the Grove MOSFET module. A MOSFET is like a switch, but it can switch much faster than a mechanical relay. Here, we implement support via MRAA pulse width modulation (PWM) functions. Note: available periods vary depending on the capabilities of your device.
CJQ4435 constructor
- Parameters
-
pin | Digital pin to use; this pin must be PWM-capable |
void enable |
( |
boolean |
enable | ) |
|
Enables output
- Parameters
-
enable | Enables PWM output if true, disables otherwise |
Shortcut to turn the output to continuous off (low)
Shortcut to turn the output to continuous on (high)
void setDutyCycle |
( |
float |
dutyCycle | ) |
|
Sets a duty cycle. Duty cycle is a floating-point number between 0.0 (always off) and 1.0 (always on). It represents a proportion of time, per period, during which the output is driven high.
- Parameters
-
dutyCycle | Duty cycle to use |
void setPeriodMS |
( |
int |
ms | ) |
|
Sets a period in milliseconds
- Parameters
-
void setPeriodSeconds |
( |
float |
seconds | ) |
|
Sets a period in seconds
- Parameters
-
void setPeriodUS |
( |
int |
us | ) |
|
Sets a period in microseconds
- Parameters
-
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/cjq4435/CJQ4435.java