From d1f6480d4f17767020b47620d72a66acacceafb2 Mon Sep 17 00:00:00 2001 From: Ivan Mikhaylov Date: Thu, 7 Jul 2022 14:46:14 -0400 Subject: [PATCH] mraa-gpio-din: add configurable GPIO mode for DIN GPIO mode wasn't set correctly, it was set from Pinmuxes modes instead of GPIO. Add way to control GPIO modes on DINs from Node-RED with possible values from mraa : Strong, Hiz, Pull-down, Pull-up. Signed-off-by: Ivan Mikhaylov --- hardware/intel/mraa-gpio-din.html | 13 ++++++++++++- hardware/intel/mraa-gpio-din.js | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hardware/intel/mraa-gpio-din.html b/hardware/intel/mraa-gpio-din.html index d49cf23b..9ff64031 100644 --- a/hardware/intel/mraa-gpio-din.html +++ b/hardware/intel/mraa-gpio-din.html @@ -7,7 +7,8 @@ defaults: { name: {value:""}, pin: {value:"", required: true}, - interrupt: {value:"", required: true} + interrupt: {value:"", required: true}, + mode: {value:"", required: true} }, inputs:0, outputs:1, @@ -68,6 +69,16 @@ +
+ + +