Code for turning power on/off to an Adafruit pin in the Maker App?

Hi!
I have a student who is trying to connect a motor to the vout pin on his Adafruit Playground Express for a final device project. Currently the motor spins whenever it’s connected to the pin, and he wants to put in a line of code that would activate it on command (either a button press on the Adafruit or the keyboard). My Adafruit skills aren’t spectacular, and I can’t figure it out either. Can someone help? Or if it’s not possible to code this in App Lab, suggest a workaround? Thanks!

A post was merged into an existing topic: Writing code to turn power on/off to an Adafruit pin in the Maker App?