# DIP Switch - OSC
[OSC]

Read the Application Board's DIP Switch via OSC. More...

Read the Application Board's DIP Switch via OSC.

## Devices

There's a single DIP Switch the Make Application Board. Because there's only one device, a device index is not included in any OSC messages to the DIP Switch.

## Properties

The DIP Switch has the following properties

- value
- autosend
- active

Value
  The value property corresponds to current configuration of the DIP Switch. The DIP switch is 8-position, which means that it will send a value from 0-255 depending on the orientation of each of the switches. Mask off the appropriate bits to determine the value of a particular channel.

  Because you can only ever read the value of an input, you'll never want to include an argument at the end of your OSC message to read the value.
  To read from the DIP Switch, send the message

      /dipswitch/value

Autosend
  The autosend property corresponds to whether the DIP Switch will automatically send a message when its value changes. To tell the DIP Swtich to automatically send messages, send the message

      /dipswitch/autosend 1

  To have the DIP Switch stop sending messages automatically, send the message

      /dipswitch/autosend 0

  All autosend messages send at the same interval. You can set this interval, in milliseconds, by sending the message

      /system/autosend-interval 10

  so that messages will be sent every 10 milliseconds. This can be anywhere from 1 to 5000 milliseconds. You also need to select whether the board should send to you over USB or Ethernet. Send

      /system/autosend-usb 1

  to send via USB, and

      /system/autosend-udp 1

  to send via Ethernet. Via Ethernet, the board will send messages to the last address it received a message from.

Active
  The active property corresponds to the active state of the DIP Switch. If the DIP Switch is set to be active, no other tasks will be able to use its I/O lines. If you're not seeing appropriate responses to your messages to the DIP Switch, check whether it's locked by sending the message

      /dipswitch/active

  You can set the active flag by sending

      /dipswitch/active 1