LEDs and Switches

Four LEDs are provided (D1 to D4). They are available on DIO0 to DIO3 of the SED-M0x module. Each of the LEDs are active low. See Table 1 for Sedona app interface information to LEDs.

Table 1. LED outputs, Sedona app component information

LED Sedona component interface
kit:component slot=value
D1 basicIo:DioOut dioNum=0
  isInput=False,  invert=True
D2 basicIo:DioOut dioNum=1
  isInput=False,  invert=True
D3 basicIo:DioOut dioNum=2
  isInput=False,  invert=True
D4 basicIo:DioOut dioNum=3
  isInput=False,  invert=True
Tip: To test drive a DioOut for a LED, link its “in” slot to the “out” slot of a DioIn set up to read one of the onboard pushbutton switches (SW1 or SW2). See Table 2.

Four momentary pushbutton switches are provided; see Table 2 for Sedona app interface information.

Table 2. Pushbutton switches, Sedona app component information for SW1 and SW2

Switch Sedona component interface
kit:component slot=value
SW1 basicIo:DioIn dioNum=8
  isInput=True,  invert=True[a]
SW2 basicIo:DioIn dioNum=9
  isInput=True,  invert=True
Reset (SW5)
Program (SW7)

[a] DioIn slot “invert” must be True for an open (unpressed) switch to have an out slot value of False.


NoteWhen the device is starting up (after power on or a reset), pushbutton switches operate in combination on the Sedona Dev Board as outlined in Table 3. Once the device is running, pushbutton switches are controlled by the Sedona app.

Table 3. Combination usage of pushbutton switches on Sedona Dev Board

Function Switch sequence
Restart with fallback app (debug output directed to RS-232 port)

See About the fallback app.

Hold down both SW1 and SW2 before pressing Reset (SW5).
Place Dev Board in “program mode” to receive flash download via RS-232 serial port (using “flasher” utility of Workbench’s Jennic Serial Port Tool). Hold down Program (SW7) before pressing Reset (SW5).