Bluebird

The Bluebird is a toy for cats. It would move around on the ground while the cat would chase it. The Bluebird has a protective cover so if you’re cat catches it, the cat won’t make a scratch.

By Austin

Presentation:

 

Video:

 

Code:

call sound.system(-1)
call leds.top(0,0,0)
call leds.bottom.left(0,0,0)
call leds.bottom.right(0,0,0)
call leds.circle(0,0,0,0,0,0,0,0)

onevent buttons
if button.center == 1 then
call leds.top(8,15,32)
end
if button.backward == 1 then
call leds.bottom.left(32,10,0)
call leds.bottom.right(32,10,0)
end

onevent rc5
if rc5.command == 1 then
call leds.top(8,15,32)
end
if rc5.command == 2 then
call leds.bottom.left(32,10,0)
call leds.bottom.right(32,10,0)
end

onevent prox
if prox.horizontal[0] > 500 then
motor.left.target = 500
motor.right.target = 0
end
if prox.horizontal[4] > 500 then
motor.left.target = 0
motor.right.target = 500
end
if prox.horizontal[1] > 500 and prox.horizontal[2] > 500 and prox.horizontal[3] > 500 then
motor.left.target = -500
motor.right.target = -500
end
if prox.horizontal[5] > 500 and prox.horizontal[6] > 500 then
motor.left.target = 500
motor.right.target = 500
end
[wpdm_file id=2]

By: Austin