Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
austin menard
Published

CPX Snake

A wooden snake wrapped with silver and copper to control a game.

IntermediateFull instructions provided8 hours130
CPX Snake

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Battery, 3.7 V
Battery, 3.7 V
×1
Alligator Clips
Alligator Clips
×1
Silver Wire
×1
Copper Wire
×1
Paint
×1
Wood
×1
Gorilla glue
×1
Yarn
×1

Story

Read more

Code

WASD Code

JavaScript
input.touchA2.onEvent(ButtonEvent.Down, function () {
    keyboard.type("S")
})
input.touchA5.onEvent(ButtonEvent.Down, function () {
    keyboard.type("D")
})
input.touchA3.onEvent(ButtonEvent.Down, function () {
    keyboard.type("W")
})
input.touchA4.onEvent(ButtonEvent.Down, function () {
    keyboard.type("A")
})

Credits

austin menard
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.