Refer to the following illustration and connect a switch (toggle, pushbutton, etc) to [din 0] as shown. Up to 4 switches can be connected in this manner.
Digital inputs 0 through 3 will output a number either 1 or 0.
Digital inputs are set to receive only "bang" messages. The default interval of bang message from the metro object is 100ms (10 times per second), but can be changed as needs require. The shortest message interval is 20ms (50 times per second).