|
'***************Bomb for the 628***************
program bomb
Dim dlay as integer
'***********************************************
Sub Procedure DlayVar
dlay = dlay - 1
Vdelay_ms(dlay)
end sub
'***********************************************
Sub Procedure scroll
PortB = %01001001
Sound_Play(dlay,20)
DlayVar
PortB = %10010010
Sound_Play(dlay,20)
DlayVar
PortB = %00100100
Sound_Play(dlay,20)
DlayVar
end sub
'***********************************************
Main:
TrisB = %00000000 ' Configure pins of PortB as output
TrisA = %00000000 ' Configure pins of PortA as output
CMCON = %00000111 ' Turn off that silly comparator
dlay = 200
sound_init(PortA,0)
While TRUE
scroll
If dlay <= 25 Then
PortB = %10000001
Sound_Play(20,90)
PortB = %01000010
Sound_Play(25,90)
PortB = %00100100
Sound_Play(50,80)
PortB = %00011000
Sound_Play(75,70)
PortB = %00111100
Sound_Play(100,60)
PortB = %01111110
Sound_Play(150,50)
PortB = %10000001
Sound_Play(200,40)
dlay = 200
End If
Wend
End.
'***********************************************
|
Robodyssey Systems manufactures Robot Kits including Autonomous Mobile
Walking Robots, Wheeled Robots, Talking Robots, Expressive Robots, and
Social Robots. We also sell Robotics Accessories including Nexcell NiMH AA
Rechargeable Batteries, Nexcell NiMH AAA Rechargeable Batteries, Battery Holders,
Velcro Straps for Battery Packs, Battery Chargers, Robot Grippers, Hobby Servos,
Servos Modified for Continuous Rotation, Tail Wheels for all Rolling Robotic Platforms,
Polyurethane Skate Wheels with Servo Adapter Hubs, Sharp IR Sensors and Adjustable
Sensor Brackets, Sensor Cables, and Programming Cables. All of our Robot Kits
can be purchased as easy to assemble robot kits or as fully assembled stationary
or mobile robots. Robodyssey uses 1/8 inch aluminum and acetyl for most all of
our mobile robot components and robotics accessories. We provide classroom
training for teachers interested in integrating robotics, computer programming
and electronics into the classroom.
We hope you enjoy our web site. Feel free to use any robotic resources.
Robodyssey is your complete solution for Educational Robotics as well as Hobby Robotics.
|