-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from CleoQc/master
V0.1.3
- Loading branch information
Showing
3 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
|
||
// Testing the wrapper functions that control the smile | ||
lights.smileCycleRainbowTime(200, 3000) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Red) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Green) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Blue) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Black) | ||
basic.pause(500) | ||
lights.smileCycleRainbow(5) | ||
|
||
for (let i = 0; i < 7; i++) { | ||
lights.smileShowGraph(i, 7) | ||
basic.pause(200) | ||
} | ||
|
||
enum gigglebotWhichEyes { | ||
//% block="both eyes" | ||
Both = 2, | ||
//% block="left eye" | ||
Left = 1, | ||
//% block="right eye"// Testing the wrapper functions that control the smile | ||
lights.smileCycleRainbowTime(200, 3000) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Red) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Green) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Blue) | ||
basic.pause(500) | ||
lights.smileShow(NeoPixelColors.Black) | ||
basic.pause(500) | ||
lights.smileCycleRainbow(5) | ||
for (let i = 0; i < 7; i++) { | ||
lights.smileShowGraph(i, 7) | ||
basic.pause(200) | ||
} | ||
|
||
// testing the ready made variable for the eyes neopixels | ||
let eyesNeoPixels = lights.whichEye(gigglebotWhichEye.Both) | ||
eyesNeoPixels.setPixelColor(gigglebotWhichEye.Left, NeoPixelColors.Green) | ||
eyesNeoPixels.setPixelColor(gigglebotWhichEye.Right, NeoPixelColors.Yellow) | ||
eyesNeoPixels.show() | ||
|
||
// testing the ready made variable for the smile neoPixels | ||
let smileNeoPixels = lights.smile() | ||
smileNeoPixels.showColor(NeoPixelColors.Purple) | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters