8GioManX
Published

Haunted House

Homemade haunted house.

BeginnerShowcase (no instructions)86
Haunted House

Things used in this project

Hardware components

Alligator Clips
Alligator Clips
×1
Circuit Playground Express
Adafruit Circuit Playground Express
×1
Li-Polymer Battery, 150mAh
Li-Polymer Battery, 150mAh
×1
Toggle Switch, Toggle
Toggle Switch, Toggle
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Custom parts and enclosures

Painting Exterior

Putting Parts In The House

Other Angle

Painted

Additional Angle

Code

Code

JavaScript
Makes lights flash red and orange while playing music.
function intro () {
    music.playTone(554, music.beat(BeatFraction.Half))
    light.setAll(0xff0000)
    music.playTone(370, music.beat(BeatFraction.Half))
    light.setAll(0xff8000)
    music.playTone(370, music.beat(BeatFraction.Half))
    light.setAll(0xff0000)
    music.playTone(554, music.beat(BeatFraction.Half))
    light.setAll(0xff8000)
    music.playTone(370, music.beat(BeatFraction.Half))
    light.setAll(0xff0000)
    music.playTone(370, music.beat(BeatFraction.Half))
    light.setAll(0xff8000)
    music.playTone(554, music.beat(BeatFraction.Half))
    light.setAll(0xff0000)
    music.playTone(370, music.beat(BeatFraction.Half))
    light.setAll(0xff8000)
    music.playTone(587, music.beat(BeatFraction.Half))
    light.setAll(0xff0000)
    music.playTone(370, music.beat(BeatFraction.Half))
}
music.setVolume(100)
forever(function () {
    intro()
})

Credits

8GioManX
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.