Skip to content

Commit 1cd91ca

Browse files
authored
Update api_gpio.js
1 parent 9f00859 commit 1cd91ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/api_gpio.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ let GPIO = {
3737
// Read GPIO pin level. Return value: 0 or 1.
3838
read: ffi('int mgos_gpio_read(int)'),
3939

40-
//read GPIO level for OUTPUT GPIO mode. Return value: 0 or 1.
41-
readout: ffi ('int mgos_gpio_read_out(int)'),
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)'),
4243

4344
// ## **`GPIO.enable_int(pin)`**
4445
// Enable interrupts on GPIO pin.

0 commit comments

Comments
 (0)