mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-14 19:29:32 +08:00
41 lines
478 B
Markdown
41 lines
478 B
Markdown
# Functions
|
|
|
|
## Toggle
|
|
|
|
Turns the LED on, or off, depending on if it is already off, or on, respectively.
|
|
|
|
#### API Command
|
|
|
|
**ToggleC**
|
|
|
|
## On
|
|
|
|
Turns LED on.
|
|
|
|
#### API Command
|
|
|
|
**OnC**
|
|
|
|
## Off
|
|
|
|
Turns LED off.
|
|
|
|
#### API Command
|
|
|
|
**OffC**
|
|
|
|
## Brightness(level byte)
|
|
|
|
Sets brightness of the led to the specified brightness value passed to brightness(level byte).
|
|
|
|
#### Params
|
|
|
|
- **level** - **byte**
|
|
|
|
#### Returns
|
|
|
|
- **level** - brightness value
|
|
|
|
#### API Command
|
|
|
|
**BrightnessC** |