Asked — Edited
Resolved Resolved by DJ Sures!

Cant Get Led Off In Script

i try several times but i cant get the led off when the pose is done. the led goes on and off while doing his pose.at the end off the pose, it keeps going on and off.

User-inserted image


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

PRO
Synthiam
#1  

That's because your script is repeating for ever in a repeat loop.

Read your script, it's doing what you're asking it to do...

  1. run a soundboard

  2. flash an led for ever

That's what you're asking it to do. What do you want to do?

PRO
Belgium
#2  

1 say sound file,play motion,flikker led 2 stop all

#3  

@nomad ... take lines 2 and 12 out (no repeatuntil).... The script will only run once but it will do what you want...

I can help you but give DJ the credit for this... I don't want any credits at this time....*

PRO
Belgium
#4  

RR

ok i give credit it dj

i made a video.

#5  

@nomad... your script repeats so the leds won't ever stop... Either remove lines 2 and 12 or add a long sleep command after set(D11,OFF) (after line 11)....