Read about programming Sphero robots in javaScript
async function startProgram() { //______________________________________ await speak("Hello World", true); //______________________________________ setMainLed({ r: 0, g: 0, b: 255}); //______________________________________ setSpeed(60.0); //______________________________________ await delay (2.0); //______________________________________ setSpeed(0.0); //______________________________________ }
async function startProgram(){ setSpee(188.0) //!ReferenceError: Can't find variable: setSpee! setMainLed({ r: 0, g: 255, b: 0 }); delay(2); }
Look at the SDK documentation to answer more questions