Raymond Boysel
Published

Pac-Man Power Glove

A CPX controlled glove controller with four inputs to play pac-man with.

IntermediateFull instructions provided2 hours155
Pac-Man Power Glove

Things used in this project

Hardware components

Circuit Playground Express
Adafruit Circuit Playground Express
×1
Wire, Wrapping Wire
Wire, Wrapping Wire
×1

Software apps and online services

MakeCode
Microsoft MakeCode

Hand tools and fabrication machines

Tape, Electrical
Tape, Electrical
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires

Story

Read more

Code

Powerglove Code

JavaScript
input.touchA6.onEvent(ButtonEvent.Click, function () {
    keyboard.functionKey(KeyboardFunctionKey.UpArrow, KeyboardKeyEvent.Press)
})
input.buttonB.onEvent(ButtonEvent.Click, function () {
    keyboard.functionKey(KeyboardFunctionKey.LeftArrow, KeyboardKeyEvent.Press)
})
input.touchA7.onEvent(ButtonEvent.Click, function () {
    keyboard.functionKey(KeyboardFunctionKey.DownArrow, KeyboardKeyEvent.Press)
})
input.buttonA.onEvent(ButtonEvent.Click, function () {
    keyboard.functionKey(KeyboardFunctionKey.RightArrow, KeyboardKeyEvent.Press)
})

Credits

Raymond Boysel

Raymond Boysel

4 projects • 0 followers

Comments