参数资料
型号: 151-0153
厂商: Rabbit Semiconductor
文件页数: 82/162页
文件大小: 0K
描述: ASSEMBLY - RABBITFLEX CABLES
标准包装: 1
系列: RabbitFLEX™
附件类型: 缆线组件
适用于相关产品: BL300F
The rest of this section will detail the main changes that have been made to this program. In fact, you
should delete the entire main while loop in speaker_tone.c, since we will be replacing it. For conve-
nience, here is the complete listing for the new while loop.
while (1) {
costate {
switch_pressed = NULL;
while (!switch_pressed) {
// Check for a switch pressed. When we detect one, then save off the pin structure
// for the switch pressed, the pin structure for the corresponding LED, and the number
// of the switch pressed.
if (flexDigIn(&flex_digin31)) {
switch_pressed = &flex_digin31;
led = &flex_digout32;
switchnum = 1;
}
else if (flexDigIn(&flex_digin33)) {
switch_pressed = &flex_digin33;
led = &flex_digout34;
switchnum = 2;
}
else if (flexDigIn(&flex_digin35)) {
switch_pressed = &flex_digin35;
led = &flex_digout36;
switchnum = 3;
}
else if (flexDigIn(&flex_digin37)) {
switch_pressed = &flex_digin37;
led = &flex_digout38;
switchnum = 4;
}
}
// Wait 50 ms to make sure the switch stays pressed (debouncing)
waitfor(DelayMs(50));
// Check if the switch is still pressed
if (flexDigIn(switch_pressed) == 1) {
// Light the corresponding output LED
flexDigOut(led, 0);
// Play the tone
flexToneLoad(tones[switchnum], tone_len[switchnum],
REPEAT_TONE);
76
Applications Programming
相关PDF资料
PDF描述
1515738-1 INSERT ASSEMBLY 1 CHANNEL
1515739-1 INSERT ASSEMBLY, 2 X 1310
1515740-1 INSERT ASSEMBLY 4 CHANNEL
1515747-1 INSERT ASSEMBLY 4 CHANNEL
1515867-1 PROTECTIVE CAP,PLUG CONN.
相关代理商/技术参数
参数描述
151-01530 功能描述:RATCHET P CLAMP SIZE A SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,6.2mm-13.7mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01531 功能描述:RATCHET P CLAMP SIZE B SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,13.2mm-19.5mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01532 功能描述:RATCHET P CLAMP SIZE C SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,19.2mm-36mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01533 功能描述:RATCHET P CLAMP SIZE D SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,35.1mm-51mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01554 功能描述:WIDE STRAP ADHESIVE MOUNT BLK 制造商:hellermanntyton 系列:* 零件状态:在售 标准包装:3,000