Skip to content

Commit dc74426

Browse files
authored
Merge pull request #18 from amizer12/patch-1
Update api_gpio.js
2 parents 8d2f612 + 1cd91ca commit dc74426

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fs/api_gpio.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ let GPIO = {
3636
// ## **`GPIO.read(pin)`**
3737
// Read GPIO pin level. Return value: 0 or 1.
3838
read: ffi('int mgos_gpio_read(int)'),
39-
39+
40+
// ## **`GPIO.read(pin)`**
41+
// Read GPIO pin level for GPIO in OUTPUT state. Return value: 0 or 1.
42+
read_out: ffi ('int mgos_gpio_read_out(int)'),
43+
4044
// ## **`GPIO.enable_int(pin)`**
4145
// Enable interrupts on GPIO pin.
4246
// This function must be called AFTER the interrupt handler is installed.

0 commit comments

Comments
 (0)