This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

DIP Switch

Read the state of a DIP switch

Library

Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield

Description

Read the four individual switch statuses. Each block output emits 0 when the corresponding switch state is Off and emits 1 when the switch state is On.

During simulations without the hardware, this block emits zeroes.

Parameters

Sample time

Specify how often this block reads the dip switch states.