Page 1 of 1

Programming Ringo - on or off?

Posted: Sun Aug 09, 2015 2:28 pm
by PeteM
It seems I must have Ringo turned on to program it. Is this correct? If this is the case we will have to be sure to program it so no motor action occurs before pushing the user button.

Otherwise, I am able to program it successfully with the examples and modify them so far. Haven't tried the gyro example yet. Time to go outside now and enjoy the weather.

Pete

Re: Programming Ringo - on or off?

Posted: Sun Aug 09, 2015 9:14 pm
by DustinSoodak
It does have to be on to program(otherwise it is just charging).
After HardwareBegin(); and PlayStartChirp();, its a good idea to put something like while(!ButtonPressed()); to prevent this issue.
Maybe even follow it with while(ButtonPressed()); so it doesn't continue until you RELEASE the button.
If it is movement function, add delay(500) after this so it isn't moving (from when you pressed the button) when the navigation sensors (gryo & accel) are zeroed.
It can also be set to start using the IR remote.