151-0153 Rabbit Semiconductor, 151-0153 Datasheet - Page 82
151-0153
Manufacturer Part Number
151-0153
Description
ASSEMBLY - RABBITFLEX CABLES
Manufacturer
Rabbit Semiconductor
Series
RabbitFLEX™r
Datasheet
1.20-151-0178.pdf
(162 pages)
Specifications of 151-0153
Accessory Type
Cable Assembly
For Use With/related Products
BL300F
Lead Free Status / RoHS Status
Vendor undefined / Vendor undefined
- Current page: 82 of 162
- Download datasheet (4Mb)
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.
76
while (1) {
costate {
switch_pressed = NULL;
while (!switch_pressed) {
}
// 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) {
// 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)) {
}
else if (flexDigIn(&flex_digin33)) {
}
else if (flexDigIn(&flex_digin35)) {
}
else if (flexDigIn(&flex_digin37)) {
}
// Light the corresponding output LED
flexDigOut(led, 0);
// Play the tone
flexToneLoad(tones[switchnum], tone_len[switchnum],
switch_pressed = &flex_digin31;
led = &flex_digout32;
switchnum = 1;
switch_pressed = &flex_digin33;
led = &flex_digout34;
switchnum = 2;
switch_pressed = &flex_digin35;
led = &flex_digout36;
switchnum = 3;
switch_pressed = &flex_digin37;
led = &flex_digout38;
switchnum = 4;
REPEAT_TONE);
www.rabbit.com
Applications Programming
Related parts for 151-0153
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
CONN ADAPTER BOARD 2MM TO .100"
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
IC CPU RABBIT2000 30MHZ 100PQFP
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
IC CPU RABBIT4000 128-LQFP
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
IC MPU RABIT3000A 55.5MHZ128LQFP
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RABBITCORE RCM4010
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
RCM4110 RABBITCORE
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RABBITCORE RCM2000
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RABBITCORE RCM3000
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MCU RCM4000 RABBITCORE
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RCM4210 RABBITCORE
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RCM4200 RABBITCORE
Manufacturer:
Rabbit Semiconductor
Datasheet:
Part Number:
Description:
MODULE RABBITCORE RCM2020
Manufacturer:
Rabbit Semiconductor
Datasheet: