14
Configura on
GPIO1 connector configura on can be done through system preferences edi on with device WebUI or with a configura on script. GPIO1 configura on part for this script is
described here:
// Set the direction: input or output
if (aDirection == "out")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.epld_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.epld_1.jack35_1.*.authorized", true);
}
else if (aDirection == "in")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.epld_1.jack35_1.*.authorized", true);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.epld_1.jack35_1.*.authorized", false);
}
else if (aDirection == "disable")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.epld_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.epld_1.jack35_1.*.authorized", false);
}