+ 1
first go to your raspberry pi options then turn on gpio
then well it depends for instance if u want to control a motor
and when coding type
import rpi.gpio as gpio
then type
gpio yours using
6 9
while true:
gpio(6)true
# foward
something like this