📄
SPAD.neXt
  • SPAD.neXt Manual
  • About SPAD.neXt
  • Getting Started
    • System Requirements
    • Supported hardware
      • Check Hardware
    • Installation
      • Simulation Specifc Steps
        • SimConnect Configuration
        • MSFS: Enable PMDG data access
        • X-Plane Configuration
    • First Start
      • Configuration Wizard
    • Common Tasks and Issues
      • SPAD
        • Online Services
        • Fresh reinstall
        • Move SPAD.neXt to new Computer
        • License Issues
      • MSFS Specific Topics
      • X-Plane specific Topics
      • Saitek/Logitech MP/RP blinking
      • USB Powermanagement
  • Guides and Videos
    • New User Series
    • MSFS SimConnect
    • L:Vars / H:Events and B:Events
    • Features & Functions
    • Device Specific
      • Arduino / SPAD Serial
      • Authentikit
      • Cockpit Simulator CDU
      • Honeycomb
      • Joystick (Generic HID)
      • miniCockpit
      • RealSimGear
      • Saitek/Logitech
      • Script Panel
      • Stream Deck
      • Thrustmaster TCA
      • vFIP
      • Virtual Avionics
      • vJoy
      • VRinsight
      • X-Touch MC Mode
      • X-Touch Midi Mode
    • Simulation Specific
      • ATR 600 (MSFS)
      • AS CRJ 550/700/900/1000 (MSFS)
      • FBW A32NX (MSFS)
      • FFX/MG HJet (MSFS)
      • FFX Vision Jet (MSFS)
      • FSW C414AW (MSFS)
      • PMDG 737 (MSFS)
      • PMDG 777 (MSFS)
      • SWS Kodiak (MSFS)
      • WT CJ4 (MSFS)
      • WT G1000 NXi (MSFS)
      • PMDG 777 (P3D)
  • User Interface
    • UI Familiarization
      • Home Page
      • Profiles Page
  • Features
    • Expressions
      • Values
      • Referencing Simulation Data
      • Operators
      • Functions
      • Examples
    • Tuner Acceleration
    • Event Execution Order
  • Simulations
    • MSFS 2024
    • MSFS 2020
    • X-Plane
      • Pre-Requisites
      • Dataref Tool
      • Helping Spad Help You
      • Dataref vs. Command: Know Your Copilots
      • Basic Flight Controls – Axis Setup
    • P3d and FSX
    • Other
  • Hardware specific
    • USB HUB Requirements
    • CPFlight Devices
    • Saitek FIP (Flight Instrument Panel)
      • Saitek FIP: Driver & Function Check
    • Loupedeck Image Devices
    • Midi Devices
      • X-Touch Mini
    • Serial (COM) Devices
    • Skalarki
    • VRInsight Overhead
  • Extending and API's
    • Gauges and Extensions
      • SPAD Gauges: GaugeSettings
    • C# Scripting Interface
      • C# Scripting: ScriptStub
      • C# Scripting: Provide Values
      • C# Scripting: PreCompile
    • Device Interface
      • Device Communication Flow
        • Device INIT-Phase
        • Device CONFIG-Phase
          • Device options
          • Device COLORSET configuration
          • Device PROFILE configuration
          • Device OUTPUT Configuration
          • Device INPUT configuration
            • Device input AXIS
            • Device input ENCODER
            • Device input PUSHBUTTON
            • Device input ROTARY
            • Device input SWITCH
            • Device input SWITCH3
            • Device LABEL
          • Device config: Advanced topics
        • Device STATESCAN-Phase
      • Device General Commands
      • Device commands
        • Page-Control
      • Device SPAD.neXt Events (2)
      • Device Simulation Events (Channel 4)
      • Device Data (Channel 5)
      • Device LED Update (Channel 6)
      • Device Display Update (Channel 7)
      • Device Input Updates (Channel 8)
      • Device Virtual Power
      • Device Custom UI
      • Device HTML UI
      • Device preconfigured definition
      • Serial V2
        • Command 1,RAISE
        • Command: 0,AUTH
    • X-Plane Datarefs & Commands
    • FSUIPC: Custom Offsets
    • RestAPI
    • HTML Rendering API
    • Other API's
  • FAQ
    • General FAQ
    • MSFS: Lost profile aircraft assigments
  • Changes
    • 0.9.21
    • 0.9.14.0
    • 0.9.13.39
  • Glossar
  • Old-Docs
    • Old-Getting-Started-Guide
Powered by GitBook
On this page
  • Device output LED
  • Examples
  • Device output DISPLAY
  • Other outputs

Was this helpful?

  1. Extending and API's
  2. Device Interface
  3. Device Communication Flow
  4. Device CONFIG-Phase

Device OUTPUT Configuration

Define a device output descriptor (SPAD -> Device)

PreviousDevice PROFILE configurationNextDevice INPUT configuration

Last updated 2 years ago

Was this helpful?

For defining an output descriptor the following command syntax is used:

0,OUTPUT,<DeviceIndex>,<Tag>,<Type>,<Inherits>[,<Option>=<Value>,...];

<DeviceIndex> is the numercial index the output should be used by SPAD when sending updates to the device (See / update ). For Led commonly the pin on the device can be used as <DeviceIndex>. This way no more internal processing needs to be done on the device. The <DeviceIndex> should be unique per <Type>

<Tag> being the internal name SPAD.neXt should use for events bound to that output descriptor. <Tag>'s must be unique device wide. It's generally a good idea to give the <TAG> a prefix (e.g. L_ for led and D_ for Displays)

<Type> the type of the output descriptor Currently there are two types of output descriptors supported:

LED an led that has either only a ON/OFF state or a multi color LED

DISPLAY any kind of display

<Inherits> is a list of base configurations the output shall use within SPAD.neXt. This decides about the events available for the output and the behaviour.

Device output LED

A led is a simple output descriptor that always has at least the state ON or OFF

Available <Inherits> for led

SPAD_LED a simple ON/OFF led

SPAD_LED_3COL a 3 color led predefined as Red,Green,Yellow

SPAD_LED_C a led with custom defined colors. The option COLORSET=<Colorset_Index> must be added to the command to inform SPAD.neXt about the available colors.

Available specific options

DYNLABEL=1

Enabled updates of the led-labeltext (UI_FACE=2) via events

UI_FACE=0

A round led that changed fillcolor depending on it's state

UI_FACE=1

A rectangular led that changes foreground-color depending on it's state

FOREGROUND=Red

UI_FACE=2

A rectangular led that can change fore/background depending on it's state

FOREGROUND.ON=Red FOREGROUND.OFF=LightGray BACKGROUND.ON=Transparent BACKGROUND.OFF=Transparent

UI_FACE=3

Use custom provided images

NOIMG=1

No background image

COL_0

Color of OFF in UI (UI_FACE != 3)

LightGray

COL_1

Color of ON in UI (UI_FACE != 3)

Yellow or #FFFF00

IMG_OFF

Image for OFF (UI_FACE = 3)

_PanelImages/LED_OFF.png

IMG_ON

Image for ON (UI_FACE = 3)

_PanelImages/LED_ON.png

Examples

0,OUTPUT,1,L_LED1,LED,SPAD_LED; defines a ON/OFF led with tag L_LED1 and index 1

0,OUTPUT,2,L_LED2,LED,SPAD_LED_3COL; defines a 3-color led with tag L_LED2 and index 2

0,OUTPUT,3,L_LED3,LED,SPAD_LED_C,COLORSET=1; defines a custom led with tag L_LED3 and index 3 using the defined colorset 1 (See COLORSET)

Device output DISPLAY

A display is any kind of alphanumerical output. It can e.g. be a 7-Segemnt lcd or a complex display with 5 rows of 20 characters each

The only available <Inherits> for a display is

SPAD_DISPLAY

All configuration is done via the options:

Option
Value
Description

LENGTH

integer

Length of each row in characters

ROWS

integer

number of rows

SEGMENTS

integer

number of segements per row. Each segments will be LENGTH/SEGEMENTS width (Default: 0)

DEFAULT

any

Default value to display

NOPADDING

0|1

Disable padding and aligment of output values

NOSEGMENTROWEVENTS

0|1

SPAD will only send updates per row, not per segment

SEGMENTALIGN

LEFT|RIGHT (... per segment)

Alignment of segment value (Default: Right)

TEXTALIGN

LEFT|RIGHT

Aligment of row (Default: right)

FONT

string

Name of the font to use (Default: Builtin LCD Font)

FOREGROUND

#RRGGBB

Forground color (Default: Blue #FFF0F8)

BACKGROUND

#RRGGBB

Background color (Default: Black #000000)

FONTSIZE

number

Size of the UI font (Default: Height of one display row)

HEIGHT

number

Height of display in pixels (UI)

WIDTH

number

Width of display in pixels (UI)

Examples

0,OUTPUT,1,D_1,DISPLAY,SPAD_DISPLAY,LENGTH=6,ROWS=1,WIDTH=133,HEIGHT=40

0,OUTPUT,1,D_1,DISPLAY,SPAD_DISPLAY,LENGTH=15,ROWS=3,WIDTH=350,HEIGHT=120

0,OUTPUT,1,D_1,DISPLAY,SPAD_DISPLAY,LENGTH=24,ROWS=12,WIDTH=400,HEIGHT=300,FONTSIZE=16

Other outputs

Forany other kind of output (e.g. a servo) no output needs to be defined. Just provide a RW-data for the output using the command and act on the device accordingly to changes to that data

LED
DISPLAY
ADD
One row with 6 characters
3 rows woth 15 chars each
12 Rows with 24 chars each