Convert C into Arduino Uno 3

const byte directionPin = <your preferred value here>;

The PWM pin is left as an exercise for the reader.