alana.brunson
Published © CC0

The Piano Controller

Why not make slow sweet movement on your very one Piano Controller

IntermediateFull instructions provided1 hour407
The Piano Controller

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Alligator Clips
Alligator Clips
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Story

Read more

Code

Piano Controller Code

JavaScript
input.buttonA.onEvent(ButtonEvent.Click, function () {
    keyboard.type("a")
})
input.touchA6.onEvent(ButtonEvent.Click, function () {
    keyboard.type("w")
})
input.touchA1.onEvent(ButtonEvent.Click, function () {
    keyboard.type("l")
})
input.touchA7.onEvent(ButtonEvent.Click, function () {
    keyboard.type("d")
})
input.touchA2.onEvent(ButtonEvent.Click, function () {
    keyboard.type("j")
})
input.touchA3.onEvent(ButtonEvent.Click, function () {
    keyboard.type("k")
})
input.touchA4.onEvent(ButtonEvent.Click, function () {
    keyboard.type("i")
})
input.touchA5.onEvent(ButtonEvent.Click, function () {
    keyboard.type("s")
})

Credits

alana.brunson
4 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.