Paso 5: Extra
var. KITTspeed = 120 ms
Si 0 = 0 entonces
Si var.kitt = 0 then
Wiimote. LED = 1
endif
Si var.kitt = 1 then
Wiimote. LED = 3
endif
Si var.kitt = 2 entonces
Wiimote. LEDs = 6
endif
Si var.kitt = 3 then
Wiimote. LEDs = 12
endif
Si var.kitt = 4 entonces
Wiimote. LED = 8
endif
Si var.kitt = 5 entonces
Wiimote. LEDs = 12
endif
Si var.kitt = 6 entonces
Wiimote. LEDs = 6
endif
Si var.kitt = 7 entonces
Wiimote. LED = 3
endif
esperar var. KITTspeed
var.Kitt = (var.kitt + 1) % 8
endif
Para hacer las luces emular Kitt.