Got my wink up and running... sound?

Ringo setup, hardware, basic programming. User to user support.
pixiepurls
Posts: 4
Joined: Tue Aug 18, 2015 2:10 am

Got my wink up and running... sound?

Postby pixiepurls » Fri Jan 01, 2016 5:30 am

So loving this little thing! I wanted to make the light fade in and out, by copy-pasta-ing the example and reversing it out to fade out as well as in. Then I did it in red and blue to be like a police car, and you can add or move the beep as you like. Next up I'll add some movement.

https://www.youtube.com/watch?v=7DIWtqEaDfY

Will there be any way to get any other tones out of this little guy or just the one singular beep? I wanted to try and give it some personality if its possible. Can I do something like this? http://www.princetronics.com/supermariothemesong/

Code: Select all

void loop(){
eyesBlue(25); //set both eyes to blue, at brightness 20
delay(50); //wait a short time
eyesBlue(75); //set both eyes to blue, at brightness 75
delay(50); //wait a short time
eyesBlue(125); //set both eyes to blue, at brightness 125
delay(50); //wait a short time
eyesBlue(175); //set both eyes to blue, at brightness 175
delay(50); //wait a short time
eyesBlue(225); //set both eyes to blue, at brightness 225
delay(50); //wait a short time
eyesBlue(225); //set both eyes to blue, at brightness 225
delay(50); //wait a short time
eyesBlue(175); //set both eyes to blue, at brightness 175
delay(50); //wait a short time
eyesBlue(125); //set both eyes to blue, at brightness 125
delay(50); //wait a short time
eyesBlue(75); //set both eyes to blue, at brightness 75
delay(50); //wait a short time
eyesBlue(25); //set both eyes to blue, at brightness 20
delay(50); //wait a short time
eyesOff(); //turn eyes off
delay(350);
// playStartChirp();

eyesRed(25); //set both eyes to blue, at brightness 20
delay(50); //wait a short time
eyesRed(75); //set both eyes to blue, at brightness 75
delay(50); //wait a short time
eyesRed(125); //set both eyes to blue, at brightness 125
delay(50); //wait a short time
eyesRed(175); //set both eyes to blue, at brightness 175
delay(50); //wait a short time
eyesRed(225); //set both eyes to blue, at brightness 225
delay(50); //wait a short time
eyesRed(225); //set both eyes to blue, at brightness 225
delay(50); //wait a short time
eyesRed(175); //set both eyes to blue, at brightness 175
delay(100); //wait a short time
eyesRed(125); //set both eyes to blue, at brightness 125
delay(50); //wait a short time
eyesRed(75); //set both eyes to blue, at brightness 75
delay(50); //wait a short time
eyesRed(25); //set both eyes to blue, at brightness 20
delay(50); //wait a short time
eyesOff(); //turn eyes off
delay(350);
// playStartChirp();

}

Return to “Ringo Basics”

Who is online

Users browsing this forum: No registered users and 1 guest