Qeedji DMB400 User Manual page 17

Hide thumbs Also See for DMB400:
Table of Contents

Advertisement

Configuration
GPIO1 connector configuration can be done by editing the user preferences using the device configuration Web user interface or with a configuration
script. The GPIO1 configuration part for this script is described here:
How to configure the Jack 3.5 mm connector:
//Set Jack 3.5 mm mode infrared
if (aDirection == "disable")
{
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.uart_1.enabled", true);
}
else //Set Jack 3.5 mm mode GPIO
{
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.uart_1.enabled", false);
}
// Set the Jack 3.5 mm direction: input or output
if (aDirection == "out")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", true);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", true);
}
else if (aDirection == "in")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", true);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", true);
}
else if (aDirection == "disable")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_1.jack35_1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_1.1.io.jack35-gpio_1.enabled", false);
}
17

Advertisement

Table of Contents
loading

Related Products for Qeedji DMB400

This manual is also suitable for:

Sma300

Table of Contents