RuntimeError: defina o modo de numeração de pinos usando gpio.setmode (gpio.board) ou gpio.setmode (gpio.bcm)

For me, the problem was that I was calling GPIO.cleanup()
Flyhouse_Squarewheel