File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ let GPIO = {
38
38
// Return value: 1 in case of success, 0 otherwise.
39
39
disable_int : ffi ( 'int mgos_gpio_disable_int(int)' ) ,
40
40
41
+ // ## **`GPIO.blink(pin, on_ms, off_ms)`**
42
+ // A utility function that takes care of blinking an LED.
43
+ // The pin must be configured as output first.
44
+ // On (output "1") and off ("0") times are specified in milliseconds.
45
+ // Set to (0, 0) to disable.
46
+ // Return value: 1 on success, 0 on failure.
47
+ blink : ffi ( 'int mgos_gpio_blink(int, int, int)' ) ,
48
+
41
49
// ## **`GPIO.set_int_handler(pin, mode, handler)`**
42
50
// Install GPIO interrupt handler. `mode` could be one of: `GPIO.INT_NONE`,
43
51
// `GPIO.INT_EDGE_POS`, `GPIO.INT_EDGE_NEG`, `GPIO.INT_EDGE_ANY`,
You can’t perform that action at this time.
0 commit comments