Skip to content

Commit

Permalink
Update api_gpio.js
Browse files Browse the repository at this point in the history
Externalise additional function hat allows to read the state of output GPIO pins
  • Loading branch information
amizer12 committed Aug 12, 2021
1 parent 8d2f612 commit 9f00859
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/api_gpio.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ let GPIO = {
// ## **`GPIO.read(pin)`**
// 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.enable_int(pin)`**
// Enable interrupts on GPIO pin.
// This function must be called AFTER the interrupt handler is installed.
Expand Down

0 comments on commit 9f00859

Please sign in to comment.