Arduino Uno Wifi Rev 2 and motor shield compatability issues

Hey,

I have an issue where the arduino Uno Wifi Rev 2 board is not communicating with a motor shield. The shield is not broken as it works perfectly with a normal Uno, but for example when I try to run the following code:

const int PWM1 = 3; 
const int DIR1 = 12; 
const int BRK1 = 9;

void setup(){
  Serial.begin(9600);
  pinMode(PWM1,OUTPUT);
  pinMode(DIR1,OUTPUT);
  pinMode(BRK1,OUTPUT);
}
void loop(){
  digitalWrite(BRK1,LOW);
  digitalWrite(DIR1,LOW);
  digitalWrite(PWM1,HIGH);
  delay(250);
}

then nothing happens.

Thanks for any help.

Have you tried using LED+resistor to test each of those 3 pins are working?

Yeah, I just tried it and all pins are working.

edit: as a clarification, if the LED is connected directy to the wifi rev 2 board or when connected through the motor shield then it turns on. But no power is supplied to the four motor pins (A and B).