Skip to content

Commit

Permalink
Update api_gpio.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amizer12 authored Aug 12, 2021
1 parent 9f00859 commit 1cd91ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/api_gpio.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ let GPIO = {
// Read GPIO pin level. Return value: 0 or 1.
read: ffi('int mgos_gpio_read(int)'),

//read GPIO level for OUTPUT GPIO mode. Return value: 0 or 1.
readout: ffi ('int mgos_gpio_read_out(int)'),
// ## **`GPIO.read(pin)`**
// Read GPIO pin level for GPIO in OUTPUT state. Return value: 0 or 1.
read_out: ffi ('int mgos_gpio_read_out(int)'),

// ## **`GPIO.enable_int(pin)`**
// Enable interrupts on GPIO pin.
Expand Down

0 comments on commit 1cd91ca

Please sign in to comment.